Description
A substance-effects engine for ESX, QBCore or QBox: each drug maps to its own screen postfx, audio cue and movement buff/debuff, with a server-timed high window that blocks re-stacking until it expires. Servers sell it as the plug-and-play sensory layer every consumable needs without the usual postfx-stacking exploit.
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/16-substance-effects-fx-engine.lua. It implements per-substance postfx/audio/move-rate effects, a server-owned high window that rejectsβ¦
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-timed high β Claude lets the client start/stop the high; own the window and the cooldown on the server.
- Postfx never cleared β stop the active
AnimpostfxStopbefore starting a new effect and on expiry, or postfx stack permanently. - Move rate stuck β drive the duration from the server and restore the move rate to 1.0 on expiry so a buff can't persist.
Corrective re-prompt: "Track each player's high-expiry timestamp on the server, reject fx:request while still high, send the duration to the client, and have the client stop the previous postfx before starting a new one and restore the move rate when it expires."
Framework Integration
- ESX:
local ESX = exports['es_extended']:getSharedObject(); trigger fx:request from yourESX.RegisterUsableItemconsume callback. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); wire fx:request intoQBCore.Functions.CreateUseableItem. - QBox: use
exports.qbx_coreand register the consumable throughexports.ox_inventoryitem-use hooks.
Profit Potential
$150β$2000/mo on Tebex (expected ~$500). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a stable standard-pattern FX niche.
Trend Signal
β stable β corpus: Per-drug screen-FX via statebags is a standard pattern across shipped drug scripts.
Sales Angle
Position as the plug-and-play sensory layer every consumable needs β distinct FX per substance and a server-owned high window that kills the stacking exploit competitors leave open. Recommended Tebex price $129.
Difficulty & Ship Time
intermediate Β· ships in 1 day.