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.
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/18-dynamic-dealing-zones.lua. It implements per-zone server-owned supply/demand/heat, a demand/supply price function, a heat-scaled bustβ¦
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-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 β
TaskPlayAnimno-ops if the deal dict is not loaded; alwaysRequestAnimDict+ aHasAnimDictLoadedwait 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 withxPlayer.addMoney(price)and consume the substance withxPlayer.removeInventoryItem. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); pay viaPlayer.Functions.AddMoney('cash', price)and pull the item before paying. - QBox: use
exports.qbx_core:GetPlayer(src)withexports.ox_inventoryto 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.