Description
An underground black-market vendor for ESX, QB, or QBox servers: a hidden dealer rotates location on a timer, prices swing on a volatility multiplier, and raw materials (precursors, glassware, cutting agents) come in scarce randomized stock. Servers sell this because it turns flat NPC shops into a supply-side economy with FOMO — players chase the vendor before it vanishes.
Prompt Template
You are writing a FiveM resource for a generic framework via exports (esx/qb/qbox).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Expected Output
The reference Lua lives at content/expected-outputs/drugs/21-underground-black-market-vendor.lua. It implements a server-owned catalog with volatility-priced randomized stock, a rotation thread that…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Known Failure Modes & Corrective Prompt
- Client-trusted price — a spoofed buy gets free items; resolve price, stock, and the cash deduction only on the server.
- Per-client vendor — spawning locally desyncs stock; broadcast spawn/despawn and keep one server stock table.
- Non-atomic buy — fast double-buys oversell; check stock and remove cash before addItem in a single server handler.
Corrective re-prompt: "In blackmarket:buy, ignore any client-sent price: look up the server price, verify CATALOG[item].stock >= qty, call removeMoney for the server-computed total, then decrement stock and addItem — and broadcast spawn/despawn to -1 so all clients share one stock state."
Framework Integration
- ESX: swap
gen_coreforexports['es_extended']:getSharedObject(); usexPlayer.removeMoneyandxPlayer.addInventoryIteminside the buy handler. - QBCore:
exports['qb-core']:GetCoreObject();Player.Functions.RemoveMoney('cash', total)thenPlayer.Functions.AddItem(item, qty). - QBox: use
exports.qbx_core:GetPlayer(src)andexports.ox_inventory:AddItem— stock and prices stay in a server-only table.
Profit Potential
$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a rising supply-side scarcity niche.
Trend Signal
↗ rising — inferred: Rotating scarcity-driven supply vendor; my reasoning on a rising supply-side feature.
Sales Angle
Position as the supply-side scarcity engine that makes raw materials feel earned — the rotating hidden vendor is the FOMO hook that flat shops can't match. Recommended Tebex price $149.
Difficulty & Ship Time
intermediate · ships in 1 day.