gta6/prompts
drugs
Vaultadvanceddrugs

Dynamic Dealing Zones with Supply & Demand

ESX/QB/QBox heat-mapped street dealing zones with NPC buyers whose price floats on server-owned local supply, demand and bust risk.

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

Description

A dynamic dealing-zone system for ESX, QBCore or QBox: street zones each carry server-owned supply, demand and heat, and NPC buyers quote a price that floats on the local demand/supply ratio while bust risk scales with heat. Servers sell it as the living drug economy that makes dealers chase the map instead of farming one static corner.

Prompt Template

You are writing a FiveM resource that works on ESX, QBCore and 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/18-dynamic-dealing-zones.lua. It implements per-zone server-owned supply/demand/heat, a demand/supply price function, a heat-scaled bust…

πŸ”’ 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-priced deals β€” Claude lets the client set price and bust outcome; compute price, heat and the bust roll on the server per zone.
  • Anim before load β€” TaskPlayAnim no-ops if the deal dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • Local-only economy β€” keep per-zone supply/demand/heat in a server table and decay it on a tick so prices float globally.

Corrective re-prompt: "Hold supply, demand and heat per zone in a server table, compute the buyer price from the demand/supply ratio, roll the bust against the zone heat server-side, shift the zone state on each sale, and decay it on a 60s tick."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); pay with xPlayer.addMoney(price) and consume the substance with xPlayer.removeInventoryItem.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); pay via Player.Functions.AddMoney('cash', price) and pull the item before paying.
  • QBox: use exports.qbx_core:GetPlayer(src) with exports.ox_inventory to remove the stash before crediting the deal.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a hot top-defensibility dynamic-pricing niche.

Trend Signal

πŸ”₯ hot β€” strategy: Dynamic supply/demand pricing is a top defensibility differentiator vs static dealing; hot.

Sales Angle

Position as the living drug economy β€” prices and heat float per zone, so dealers chase the map and rivals can flood a corner to crash a price. Recommended Tebex price $349.

Difficulty & Ship Time

advanced Β· ships in 2-4h.