NPC Medic
Configuration
All configuration is in config.lua. Options are grouped below by category.
All Options
| Key | Type | Description |
|---|---|---|
| MinimumEMSToDisableAI | number | Minimum EMS online before the AI medic is disabled. Set to 1 to disable when any EMS is on duty. Set to 0 to always allow the AI medic regardless. |
| UseWasabiAmbulanceExport | boolean | Use wasabi_ambulance:RevivePlayer as the primary revive method. Recommended true if you have wasabi_ambulance installed. |
| ServerPerformsRevive | boolean | When true, payment and revive logic run server-side only. Prevents client-side exploits. Recommended to leave true. |
| Society.enable | boolean | When true, the revive payment is sent to the society account defined in Society.account instead of the server economy. |
| Society.account | string | The society account name to receive revive payments. Only used when Society.enable = true. |
| DiscordWebhook | string | Discord webhook URL for logging NPC revives. Logs player name and charge amount. Leave empty or omit to disable. |
Additional options for price, revive time, doctor model, spawn radius, and vehicle type are all inside
config.lua. The file is fully commented — each option explains itself.Key settings explained
EMS threshold
config.lua
-- AI medic only activates when fewer than this many EMS are online
-- 1 = disable AI when any EMS is on duty (recommended)
-- 0 = always allow AI medic regardless of EMS count
Config.MinimumEMSToDisableAI = 1
Revive method
config.lua
Config.UseWasabiAmbulanceExport = true -- use wasabi_ambulance:RevivePlayer export
Config.ServerPerformsRevive = true -- payment + revive handled server-side
Society payments
config.lua
Config.Society = {
enable = true,
account = 'ambulance' -- society account that receives revive payment
}
Discord logging
config.lua
-- paste your webhook URL here, or leave empty to disable
Config.DiscordWebhook = ''