gta6/prompts
drugs
Vaultintermediatedrugs

Substance Effects & Screen-FX Engine

ESX/QB/QBox per-drug consumption-effects engine: screen distortion, audio, movement buffs/debuffs and a server-timed high gated against stacking.

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

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.

πŸ”’ 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/16-substance-effects-fx-engine.lua. It implements per-substance postfx/audio/move-rate effects, a server-owned high window that rejects…

πŸ”’ 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-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 AnimpostfxStop before 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 your ESX.RegisterUsableItem consume callback.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); wire fx:request into QBCore.Functions.CreateUseableItem.
  • QBox: use exports.qbx_core and register the consumable through exports.ox_inventory item-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.