Description
An ESX ambulance job: a watcher thread flags the player as downed when their ped dies, and a medic runs /revive on the nearest patient. The revive resurrects the player, restores health, clears blood damage, and pays the medic. This is the backbone of any medical RP loop and the death-handling layer other jobs depend on.
Prompt Template
You are writing a FiveM resource for esextended (stable, exports getSharedObject).
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/jobs/03-ems-revive-death-state.lua. It implements a latched death watcher, a closest-player revive command, and a server payout with a job check.…
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
- Health without resurrect —
SetEntityHealthon a dead ped leaves the player in the spectator death cam. Always callNetworkResurrectLocalPlayer(...)first. - Spamming the downed event — checking
IsEntityDeadevery tick re-fires the event constantly. Latch with anisDeadboolean and reset it only on revive. - No job gate — without the
job.name == "ambulance"server check, any player can/reviveand farm the $250. Validate server-side. - Leftover blood/state — forgetting
ClearPedBloodDamageleaves a freshly revived patient covered in damage decals.
Integration Notes
- Split the banners into
client.luaandserver.lua; list both infxmanifest.lua. - Requires
es_extendedand anambulancejob seeded in yourjobstable. - On a dev server: kill your character, connect a second medic client, and confirm
/reviveresurrects you and the medic receives $250.
Profit Potential
$450–$6500/mo on Tebex (expected ~$1700). [INFERRED] priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100), scaled for a hot job-systems niche at intermediate difficulty — EMS cross-sells with police as a must-have pair.
Trend Signal
🔥 hot — custom FiveM job systems = niche-selection LAUNCH #1 (4.75).
Sales Angle
Position as the medical backbone the whole server's death-handling rides on — latched down-state, closest-patient revive, job-gated payout. A natural cross-sell beside a police pack; list at $179 standalone or bundle the pair.
Difficulty & Ship Time
intermediate · ships in 4-8h.