gta6/prompts
vehicles
Vaultintermediatevehicles

Trunk & Glovebox Storage

ESX per-vehicle trunk and glovebox stashes keyed to the plate, with server-authoritative weight/slot limits so items persist to that specific car.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~89 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

Per-vehicle trunk and glovebox stashes keyed to the license plate, each with a weight limit, so items live with that specific car rather than the player. The plate-binding plus strict server authority is the whole product — it must be impossible to dupe by re-opening, which is exactly where naive versions fail.

Prompt Template

You are writing an ESX FiveM Lua script. Build per-vehicle trunk + glovebox…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Expected Output

The reference Lua at content/expected-outputs/vehicles/21-trunk-glovebox-storage.lua keeps every stash and item move on the server keyed by a whitespace-normalized plate, enforces a weight limit…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Dupe via client trust — tracking contents client-side lets a player re-open and clone items; the server must own the stash and validate every move.
  • Plate split — un-normalized plates create two stashes for one car; strip whitespace.
  • Anim T-pose — load the dict with the wait loop before TaskPlayAnim.

Corrective re-prompt: "Players can dupe items from the trunk. Move the entire stash table and the add/remove logic to server.lua keyed by the normalized plate (gsub('%s+','')), validate xPlayer.getInventoryItem(item).count and the weight limit server-side before accepting a store, and have the client only send open/store requests."

Framework Integration

  • ESX: native — ESX.GetPlayerFromId, getInventoryItem, removeInventoryItem as shown.
  • QBCore: swap to QBCore.Functions.GetPlayer(src) and Player.Functions.RemoveItem; key the stash with qb-inventory's stash API if present.
  • QBox: use exports.qbx_core:GetPlayer(src) and prefer ox_inventory RegisterStash keyed by plate for the heavy lifting.

Profit Potential

$150–$2000/mo on Tebex (expected ~$600). [INFERRED] $50-389 script band (§2) × estimated units/mo for a stable niche, benchmarked against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo).

Trend Signal

stable — corpus: ox_inventory's trunk/glovebox stash is a heavily-used feature; standalone plate-bound storage for lighter stacks has steady demand.

Sales Angle

Sell it as the lightweight, plate-bound trunk for servers not running ox_inventory, leading with airtight server authority (no dupes) as the trust pitch. Recommended Tebex price: $90.

Difficulty & Ship Time

intermediate · ships in 1 day.