Ambulance System
Death and respawn, the EMS job at Pillbox Hospital, and the AI doctor.
What it is
This system decides what happens when a player dies, and gives the EMS (the ambulance job) the tools to revive and treat people at Pillbox Hospital. When no medic is on duty, a dead player can call an AI doctor.
The parts
- Death & Respawn: what a dead player sees and can do.
- EMS Job: reviving, treating injuries, stretcher, medical bag and tablet.
- AI Doctor:
/helpwhen no medic is on duty.
Places at Pillbox Hospital
| Place | Coords |
|---|---|
| Pillbox Hospital (map blip) | 308.96, -591.52, 43.28 |
| Paramedic (paid treatment) | 311.58, -594.08, 42.28 |
| Locker (outfit) | 300.75, -596.35, 42.28 |
| Garage | 291.22, -614.91, 42.42 |
| Pharmacy | 303.72, -569.93, 43.28 |
| EMS stash | 306.73, -601.63, 43.28 |
| Boss menu | 335.53, -594.63, 43.28 |
Hospital doors are not locked out of the box. Create them in game with the doorlock menu (/doorlock, staff only). See Doorlock System and the official ox_doorlock guide.
Config basics
Main file: [esx]/[jobs]/[ambulance]/mvx_ambulance/modules/ambulance/config.lua. Hospital places, pharmacy items,
EMS cars and outfits are in modules/ambulance/data/hospitals.lua. The AI doctor is in modules/aidoc/config.lua.
Restart mvx_ambulance when nobody is dead.
Admin commands
| Command | What it does | Who |
|---|---|---|
/revive [id], /revivearea <radius>, /reviveall | Revive one player, an area, or everyone | Admins, mods |
/heal [id], /healarea <radius> | Fill health, hunger and thirst | Admins, mods |
/feed <id> | Fill only hunger and thirst | Admins |
Admin Quick Test
This page only checks the admin commands. Each part has a full walkthrough: Death & Respawn, EMS Job and AI Doctor. All admin commands are on Admin Commands.
- Teleport to Pillbox:
/tp 308.96 -591.52 43.28(or admin tablet HOME → World → Teleport: 308.96, -591.52, 43.28). You see the "Pillbox Hospital" blip. - Lose some health (for example a short fall) and type
/heal. Health, hunger and thirst are full again. - Die and type
/revive. You get up where you are.
If it doesn't work: /revive and /heal need the admin or mod group.