gta6/prompts
drugs
Vaultintermediatedrugs

Stash Houses & Robbable Storage

Framework-agnostic player-owned stash storage with capacity tiers, server-tracked decay, and a forced-entry robbery flow that transfers loot to the raider.

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

Description

A working framework-agnostic stash-storage system: players own stash houses with tiered capacity, contents decay over time if left untouched, and a rival can force entry to drain the whole stash into their own pockets. This is the risk-bearing storage layer crime servers sell so product and cash are never truly safe.

Prompt Template

You are writing a FiveM resource for a generic framework via exports['gencore']:getObject().

πŸ”’ 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 lives at content/expected-outputs/drugs/28-stash-houses-robbable-storage.lua. It implements proximity open with an owner check, a forced-entry anim, a server rob handler that…

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

  • Client-held contents β€” Claude stores stash items client-side; a modder reads or edits them. Keep the stash table server-authoritative.
  • Client-side loot transfer β€” granting items to the robber on the client mints loot; move items with addItem on the server.
  • One-sided net event β€” defining stash:open/stash:robResult on one side breaks the round-trip; both sides use RegisterNetEvent + AddEventHandler.
  • Anim before load β€” TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.

Corrective re-prompt: "Store every stash's items, owner identifier, tier and decay timer on the server. In stash:rob, move each item to the robber via addItem and then empty the server stash β€” never grant items on the client. Gate stash:open so only the owner identifier may open it."

Framework Integration

  • ESX: resolve with exports['es_extended']:getSharedObject(); key ownership by xPlayer.identifier and grant loot with xPlayer.addInventoryItem.
  • QBCore: use exports['qb-core']:GetCoreObject(); key by Player.PlayerData.citizenid and grant with Player.Functions.AddItem; pair the door with ox_doorlock.
  • QBox: use exports.qbx_core:GetPlayer(src) and exports.ox_inventory stashes; ownership/decay logic is identical.

Profit Potential

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

Trend Signal

β†’ stable β€” corpus: Stash storage with raid risk is common; ox_doorlock doors + ox_inventory stashes are standard.

Sales Angle

The risk-bearing storage layer every drug economy needs β€” owned stashes with capacity tiers, decay, and forced-entry robbery that keeps product and cash genuinely at risk. Recommended Tebex price $189.

Difficulty & Ship Time

intermediate Β· ships in 5-7h.