> For the complete documentation index, see [llms.txt](https://mi-store.gitbook.io/mistore-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mi-store.gitbook.io/mistore-docs/resources/mi-npcems.md). Agents can also search and read this documentation through its [MCP server](https://mi-store.gitbook.io/mistore-docs/~gitbook/mcp).

# mi-npcems

An NPC medical unit by ambulance, boat or helicopter that works together with your real EMS. Treatment, defibrillator, ambulance ride, hospital beds, insurance and player-owned ambulance companies.

**MI NPC EMS** sends an NPC medical unit when a player needs help. It works on **Qbox**, **QBCore** and **ESX**.

Depending on the place and the mode, the unit comes by ambulance, boat or helicopter. Version 2 works together with your real EMS players instead of replacing them: the call goes to them first, and the NPC only comes when nobody takes it.

{% hint style="info" %}
Current version: **2.0.0**. New on this script? Start with the Quick start: it runs in 5 minutes.
{% endhint %}

## Features

### Calls

* **Real EMS first.** On-duty EMS get a call card with an accept timer, and the call also goes to your dispatch script. The NPC unit only comes when nobody accepts.
* **NPC backup.** On-duty EMS can send an NPC ambulance to any patient, even when many EMS are on duty.
* Ambulance, boat, helicopter (medic on a rope or hoist) and hospital transport.
* **Unsafe scene.** When there is shooting near the patient, the ambulance waits at a distance and can alert the police.
* **More patients at one place.** One NPC unit treats several players close to each other, the worst first.

### Care

* **Treatment for each injury.** Gunshot, stab, beaten, crash, fall, drowning, burns, explosion, overdose and animal attack each get their own steps, with props in the medic's hands, before CPR.
* **Defibrillator moment.** No pulse on the monitor, charge, "Clear!", shock, the pulse comes back.
* **Live heart monitor** with a working screen: heartbeat line, pulse, oxygen and beeps.
* **Ride in the ambulance.** The patient lies in the back, the medic treats them, the camera is inside.
* **Hospital arrival.** The crew wheels the patient on a stretcher into a real bed. The helicopter lands on the roof pad.

### Money and business

* **Insurance plans.** Bronze, Silver and Gold (or your own), with a policy card.
* **Safe payment.** The fee is held and only taken when the treatment worked. Failed calls are refunded.
* **Ambulance companies.** Players buy or rent a private ambulance company, hire paramedics, buy vehicles and earn from the NPC calls in their area.

### For server owners

* **Setup check** in the server console on every start, with a short fix for each problem.
* **In-game editor** for hospitals, beds, walk paths, insurance agents, zones, companies and almost every config value.
* **Discord logs** for calls, EMS, payments, insurance, companies and admin changes.
* **Bridges** for 15 ambulance scripts, 10 dispatch scripts, many inventories and UI scripts, with open files to add your own.
* **9 languages.**

## Requirements

|                   |                                                                                       |
| ----------------- | ------------------------------------------------------------------------------------- |
| Framework         | Qbox (`qbx_core`), QBCore (`qb-core`) or ESX Legacy (`es_extended`)                   |
| Required          | `ox_lib`, `oxmysql`                                                                   |
| For the companies | `mi-jobui` (included in the download)                                                 |
| Recommended       | [don-emsprops](https://github.com/DonHulieo/don-emsprops) (free prop pack)            |
| Optional          | `ox_target` or `qb-target`, a supported ambulance script, a supported dispatch script |

The full list is on Installation.

## Pages

* Quick start
* Installation
* Setup check
* Real EMS and NPC backup
* Treatment, defibrillator and monitor
* Transport, ride and hospital arrival
* Helicopter, boat and special scenes
* Insurance and payment
* Ambulance companies
* Editor and admin panel
* Discord logs
* Configuration
* Bridges and supported scripts
* Exports and events
* Locales
* Commands and keys
* Common issues
