gta6/prompts
jobs
Coreintermediatejobs

EMS / Ambulance — Revive & Death State

ESX ambulance job that detects a downed player, lets a medic revive the nearest patient, and pays the medic.

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

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).

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

🔒 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

  • Health without resurrectSetEntityHealth on a dead ped leaves the player in the spectator death cam. Always call NetworkResurrectLocalPlayer(...) first.
  • Spamming the downed event — checking IsEntityDead every tick re-fires the event constantly. Latch with an isDead boolean and reset it only on revive.
  • No job gate — without the job.name == "ambulance" server check, any player can /revive and farm the $250. Validate server-side.
  • Leftover blood/state — forgetting ClearPedBloodDamage leaves a freshly revived patient covered in damage decals.

Integration Notes

  • Split the banners into client.lua and server.lua; list both in fxmanifest.lua.
  • Requires es_extended and an ambulance job seeded in your jobs table.
  • On a dev server: kill your character, connect a second medic client, and confirm /revive resurrects 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.