gta6/prompts
drugs
Vaultintermediatedrugs

Underground Black-Market Vendor

ESX/QB/QBox hidden vendor that rotates location on a timer, fluctuates buy prices with volatility, and gates raw-material purchases behind scarce, randomized stock.

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

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).

🔒 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/21-underground-black-market-vendor.lua. It implements a server-owned catalog with volatility-priced randomized stock, a rotation thread 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-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_core for exports['es_extended']:getSharedObject(); use xPlayer.removeMoney and xPlayer.addInventoryItem inside the buy handler.
  • QBCore: exports['qb-core']:GetCoreObject(); Player.Functions.RemoveMoney('cash', total) then Player.Functions.AddItem(item, qty).
  • QBox: use exports.qbx_core:GetPlayer(src) and exports.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.