NPC Medic — Installation
Dependencies
| Resource | Required | Notes |
|---|---|---|
ox_lib | Yes | Required for notifications, UI, and server callbacks |
ESX, QBCore, or Qbox | Yes | Framework core for job checks, society money, and player states |
Supported EMS & Ambulance Scripts
fs_npcmedic auto-detects when players are downed using your installed medical script:
| Medical Resource | Detection Logic |
|---|---|
| wasabi_ambulance (v1.x) | exports.wasabi_ambulance:isPlayerDead() |
| wasabi_ambulance (v2+) | LocalPlayer.state['wasabi:deathState'] == 2 |
| ak47_ambulancejob | LocalPlayer.state.dead |
| p_ambulancejob | LocalPlayer.state.isDead |
| qbx_ambulancejob / qbx_medical | exports.qbx_medical:IsDead() |
| tk_ambulancejob | LocalPlayer.state.isDead |
Custom Medical Script Support
If you use a custom or unlisted ambulance script, you can easily add your own death state check in the open fs_npcmedic/bridge/ folder in IsPlayerDead():
lua
function IsPlayerDead()
if GetResourceState("your_custom_ambulance") == 'started' then
return exports.your_custom_ambulance:isDead()
end
endInstall Steps
- Create a category folder named
[fs]inside your server'sresources/directory if you haven't already (resources/[fs]/). - Download and place the
fs_npcmedicfolder intoresources/[fs]/fs_npcmedic. - Configure your commands, prices, EMS restrictions, and hospital drop-offs in
fs_npcmedic/config/config.lua. - Add the resource to your
server.cfg:
lua
ensure ox_lib
ensure fs_npcmedic- Restart your FiveM server and verify console output.
