Skip to Content
Mavix

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: /help when no medic is on duty.

Places at Pillbox Hospital

PlaceCoords
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
Garage291.22, -614.91, 42.42
Pharmacy303.72, -569.93, 43.28
EMS stash306.73, -601.63, 43.28
Boss menu335.53, -594.63, 43.28
NoteDoors

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

CommandWhat it doesWho
/revive [id], /revivearea <radius>, /reviveallRevive one player, an area, or everyoneAdmins, mods
/heal [id], /healarea <radius>Fill health, hunger and thirstAdmins, mods
/feed <id>Fill only hunger and thirstAdmins

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.

  1. 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.
  2. Lose some health (for example a short fall) and type /heal. Health, hunger and thirst are full again.
  3. Die and type /revive. You get up where you are.

If it doesn't work: /revive and /heal need the admin or mod group.

On this page