Description
A cross-substance purity engine for ESX, QBCore or QBox: every substance carries a server-owned 0-100% purity that sets its tier (cut → street → high → pure), and that single number drives sale price, effect strength and addiction risk everywhere else. Servers buy it because it is the defensible spine a whole drug economy bolts onto instead of static per-item prices.
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/13-purity-quality-tier-engine.lua. It implements a server-clamped 0-100% purity per substance, a four-band tier function, a cut-agent refine…
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 purity — Claude lets the client report purity/tier; derive and store both server-side.
- Anim before load —
TaskPlayAnimno-ops if the cut dict is not loaded; alwaysRequestAnimDict+ aHasAnimDictLoadedwait loop. - Client-set payout — never trust a sell amount from the client; look up stored purity and compute the payout on the server.
Corrective re-prompt: "Store purity in a server table keyed by source and substance, clamp it 0..100, compute tier and sale payout entirely on the server, and only ever send the result down to the client for display."
Framework Integration
- ESX:
local ESX = exports['es_extended']:getSharedObject(); add the payout withxPlayer.addMoneyand gate substances viaxPlayer.getInventoryItem. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); pay withPlayer.Functions.AddMoney('cash', payout). - QBox: use
exports.qbx_core:GetPlayer(src)andexports.ox_inventoryto consume the cut agent and the raw substance.
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 high-defensibility economy-spine niche.
Trend Signal
🔥 hot — strategy: Matrix: a cross-substance purity meta is the high-defensibility spine of a drug economy; hot.
Sales Angle
Position as the economy spine every other drug script plugs into — one server-owned purity meta drives price, effect and addiction rather than static item prices. Recommended Tebex price $289.
Difficulty & Ship Time
intermediate · ships in 1 day.