How death works in FiveM: last stand to respawn
On a FiveM server, a script decides what happens when a player’s health runs out. It puts the player down, gives EMS time to revive them and then lets them respawn at a hospital. On ESX and QBCore, the default ambulance job does this. Hospital MLOs and EMS clothing packs are maps and outfits, so they don’t change any of these rules.
Our Advanced Ambulance Job replaces the default ambulance job on ESX, Qbox and QBCore. Here’s how it works with its default config.
How it works
- Injury. Every hit lands on a body part, with a type (shot, stab, fracture or burn, for example) and a severity. Injuries apply debuffs such as slower movement, aim shake or bleeding. Each one has its own chance and health threshold in
Config. A bleed injury drains health over time until someone treats it. A tourniquet stops bleeding on arms and legs..Debuffs - Last stand. A fatal hit doesn’t kill the player straight away. It puts them in last stand, where they can crawl while a 60-second timer runs (
Config)..LastStand .time IsLastStandInjuryinclient/decides which injuries lead to last stand. By default, every injury does.main_editable.lua - Death. If the player gets hurt again during last stand, they die. If they’re still down when the timer ends, they bleed out and die. Set
Configto.LastStand .enable falseand a fatal hit leads straight to death. A dead player can send a distress signal, at most once a minute (Config). By default, EMS get a notification with the street and a map blip. If you run our Dispatch System and set.DistressSignal Configto.Dispatch 'tk', the signal shows up there as a call for the ambulance job. - Revive. A medic can revive the player with CPR (70% success), a defibrillator (100%) or an adrenaline syringe (50%). You set these in
Config. By default, CPR and the defibrillator are limited to the.ReviveOptions ambulancejob, and the adrenaline syringe has no job list in the config. Once a body is in a body bag, it can’t be revived. A hospital respawn is the only way back. - Respawn. After 300 seconds (
Config), the player can hold the respawn key for 3 seconds. They wake up at the nearest location in.Death .time Config. The respawn costs 500 in-game money, taken from their cash, or from the bank if cash is short. Items and weapons stay by default (.Respawn .locations Config)..Respawn .items .remove - Hospital care. Hospital beds and the medic NPC treat injuries, remove bullets and can revive. Both stop working when more than 2 EMS are online (
maxEMSCount).
EMS do their work between these steps. The skeletal view shows each body part’s health, injuries and bullets. There are 13 treatment items that remove injuries by type and severity, and stretchers and wheelchairs to move patients.
Staff can run /revive <id>. It’s registered as a restricted command, so it needs an ACE permission, such as the add_ace group line in the Cfx.re example server.cfg.
What it connects to
- Frameworks and resources: ESX, Qbox and QBCore, plus a custom framework with setup. It works with ox_inventory, qb-inventory or qs-inventory, and with ox_target or qb-target. The stretcher and wheelchair model resources must be started in
server..cfg - Other scripts: they can read a player’s state from state bags, such as
deathState(0 alive, 1 last stand, 2 dead),isDeadandisInLastStand(state bags). To revive a player from another script, use the server exportrevive(playerId, healInjuries). - Distress signal route:
Configpicks the route. The code for each route lives in.Dispatch SendDistressSignalinclient/, which is an editable file.main_editable.lua - Police evidence: with Realistic Evidence System V2 (sold separately) and
Configset to.UseTKEvidence true, removing a bullet gives police a fragment they can analyse.
Advanced Ambulance Job has its own bullet effects by body part in Config. Head shots shake the camera, torso and leg hits can ragdoll the player, and arm wounds shake the aim.
Bullet Effects is a separate script that runs alongside the ambulance job you already have. It comes as an ESX package and a QBCore package, and the QBCore one also runs on Qbox. In the ESX package, Config names the revive event it listens for (esx_ by default). Config decides whether a revive clears the bullets.
What to check before you choose
- What runs death now. On ESX,
esx_ambulancejobholds the death screen and the respawn and bleed-out timers. The ESX docs say its death handling will move into es_extended (ESX docs, read 19 October 2026). On Qbox,qbx_medicaltracks health, damage and status effects. On QBCore,qb-ambulancejobholds the EMS job and the death and wound logic. Find out which resource handles death on your server before you add another death script. - Your timers and costs. Decide how long last stand lasts, how long the respawn wait is, what a respawn costs and whether it removes items. Then set them in
config..lua - Who may revive. Each revive option has its own jobs, grade and success chance.
- Your hospital map. Hospital locations default to Gabz Pillbox Hospital, and you can move them to any MLO in the config.
The Advanced Ambulance Job showcase runs 5:45. It came out in December 2025, so later updates may differ from what you see. To check the timings yourself, down a player on a test server with the default config and time it. You should get 60 seconds of last stand, then a 300-second wait before the respawn key works.


