gta6/prompts
crafting
Vaultintermediatecrafting

Deployable Lockable Stash Crate

ESX/QBCore deployable crate that spawns a persistent lockable storage prop in the world and packs back into a carriable item to relocate, with ownership and contents owned server-side.

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
~90 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A deployable stash crate for ESX/QBCore: the player drops a lockable storage crate prop in the world, fills it, and can pack it back into a carriable item to relocate it elsewhere. The server owns crate ownership and contents and gates both the spawn and the pack-back, so storage and the crate item itself cannot be duplicated.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

πŸ”’ 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/crafting/05-deployable-stash-crate.lua implements a model-loaded prop spawn, a server crate:deploy that consumes the carriable item before spawning, and…

πŸ”’ 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

  • Unloaded model β€” CreateObject before the model loads spawns nothing. Require RequestModel + the HasModelLoaded wait loop.
  • Theft / dupe on pack β€” packing a crate you do not own, or one with items still in it, dupes loot. Gate on owner and an empty contents.
  • Client-side item consume β€” refunding/consuming stash_crate in NUI lets the bag deploy infinitely. Do it in the server only.

Corrective re-prompt: "Consume and refund the stash_crate item server-side only, load the prop model with RequestModel and a HasModelLoaded wait before CreateObject, and allow crate:pack only for the crate owner when its contents table is empty."

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); getInventoryItem/removeInventoryItem/addInventoryItem gate the crate item.
  • QBCore: exports['qb-core']:GetCoreObject(), QBCore.Functions.GetPlayer(source); use Player.Functions.RemoveItem/AddItem.
  • QBox: exports.qbx_core:GetPlayer(source); back the crate contents with an ox_inventory custom stash keyed by crateId.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a stable storage niche.

Trend Signal

β†’ stable β€” corpus: ox_inventory stashes are native; deployable-prop stash variants are a steady tebex_topsellers category (distinct from a static house stash).

Sales Angle

The relocatable-storage upgrade over static house stashes β€” deploy it anywhere, fill it, pack it, move it. Recommended Tebex price: $69.

Difficulty & Ship Time

intermediate Β· ships in 1 day.