gta6/prompts
economy
Coreadvancedeconomy

Black Market — Rotating Illegal Stock

QBCore black market whose illegal stock rotates on a timer from a larger pool, with server-validated purchases and limited quantities.

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

Description

A QBCore black-market dealer whose inventory is a random subset of a larger pool, rotating every N minutes with limited quantities and cash-only prices. The server owns the current stock and decrements it on each sale. The scarcity and rotation are what make the illegal economy feel alive and worth checking back on.

Prompt Template

You are writing a FiveM resource for qb-core.

🔒 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/economy/08-black-market-rotating-stock.lua keeps a server-owned currentStock, rotates a Fisher-Yates-shuffled 4-item subset on a timer, serves it via a…

🔒 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

  • Client-owned stock/price — sending stock from the client lets a cheater forge items and prices. Require the server to own both; the client only names the item.
  • Infinite limited stock — not decrementing qty server-side makes scarcity fake. Require a server-side qty -= 1.
  • Biased shuffletable.sort with a random comparator or a naive swap skews rotation. Require Fisher-Yates.
  • Funds checked late — adding the item before the cash check gifts items. Require the funds check before AddItem.

Integration Notes

server.lua runs rotation, the stock callback, and purchase validation; client.lua opens the menu and forwards buys. Declare both in fxmanifest.lua plus the NUI files. Depends on qb-core and your inventory for AddItem. Test: /blackmarket, buy an item, confirm cash drops and qty falls; lower ROTATE_INTERVAL to watch the stock list change.

Profit Potential

$400–$5000/mo on Tebex (expected ~$1400). [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 rising economy niche.

Trend Signal

rising — [INFERRED] banking/economy is core RP-server infrastructure, steady demand.

Sales Angle

Position as a destination crime feature for QBCore/QBox — scarcity-driven rotating stock that creates its own foot traffic and resale loop. The rotation mechanic is the upsell. Recommended Tebex price: $99.

Difficulty & Ship Time

advanced · ships in 4-6h.