gta6/prompts
drugs
Vaultintermediatedrugs

Overdose & EMS Response System

ESX/QB/QBox overdose events from stacked effects that ragdoll and down a player, alert EMS, and gate revive behind a server-checked medic job.

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

Description

An overdose system for ESX, QBCore or QBox: stacking too many active effects triggers an OD event that ragdolls and downs the player, fires an EMS alert with the coords, and locks revive behind a server-checked medic job. Servers sell it as the cross-job stakes layer that gives EMS real drug work and makes overdosing actually matter.

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/17-overdose-ems-response.lua. It implements a server-owned OD state triggered only when the effect stack is high enough, an EMS broadcast…

πŸ”’ 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

  • Self-revive β€” Claude lets the client clear its own OD; keep OD state and the revive on the server.
  • Anim before load β€” TaskPlayAnim no-ops if the writhe dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • Anyone revives β€” gate od:requestRevive behind a server-side medic job check, not just the client UI.

Corrective re-prompt: "Hold OD state in a server table, only trigger it when the effect stack is >= 3, broadcast an EMS alert with the downed coords, and accept od:requestRevive only when the reviver passes a server-side medic job check and the target is truly downed."

Framework Integration

  • ESX: replace isMedic with xPlayer.getJob().name == 'ambulance' via exports['es_extended']:getSharedObject().
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); check Player.PlayerData.job.name == 'ambulance' inside isMedic.
  • QBox: use exports.qbx_core:GetPlayer(src) and gate on player.PlayerData.job.type == 'ems'.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a rising cross-job realism niche.

Trend Signal

β†— rising β€” inferred: OD-to-EMS cross-job hook is realism-driven; my reasoning, rising alongside addiction systems.

Sales Angle

Position as the cross-job stakes layer that gives EMS real drug work and makes overdosing a consequence, not a shrug. Recommended Tebex price $169.

Difficulty & Ship Time

intermediate Β· ships in 1 day.