vi/raiser
drugs
drugs, GTA 6 style illustration
Vaultintermediatedrugs

Purity & Quality-Tier Engine

ESX/QB/QBox cross-substance 0-100% purity meta-system where server-owned purity drives sale price, effect strength and addiction risk across every substance.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~86 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / mohot
$1,500($400 to $6,000)

$50-389 script band, sized for a hot niche; top sellers clear around $11.85K/mo.

Effort vs return
intermediate1 day

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.

🔒 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/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…

🔒 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 purity, Claude lets the client report purity/tier; derive and store both server-side.
  • Anim before load, TaskPlayAnim no-ops if the cut dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait 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 with xPlayer.addMoney and gate substances via xPlayer.getInventoryItem.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); pay with Player.Functions.AddMoney('cash', payout).
  • QBox: use exports.qbx_core:GetPlayer(src) and exports.ox_inventory to consume the cut agent and the raw substance.

Profit Potential

$400-$6000/mo on Tebex (expected ~$1500), within the $50-389 script band against a corpus of comparable Tebex sellers (median ~$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.