NPC Medic
Configuration
Everything is in config.lua, which stays open when the resource is escrowed.
AI medic
| Key | Default | Description |
|---|---|---|
| MinimumEMSToDisableAI | 1 | EMS online needed to turn the AI medic off. 0 = always on |
| RevivePrice | 2000 | Charged for /help (cash first, then bank) |
| ReviveTime | 10000 | Treatment time in ms |
| Medic | doctor / ambulance | Ped, vehicle and name |
| SpawnRadius | 40 | How far away the ambulance spawns |
| CallCommand | 'help' | Command name |
| NotifyPriority | wasabi_notify, ox_lib, QBCore, ESX | Notification order to try |
| UseWasabiAmbulanceExport | true | Use Wasabi to revive when available |
| ServerPerformsRevive | true | Payment and revive server-side. Leave on |
Society
config.lua
Config.Society = {
enable = true,
account = 'society_ambulance', -- ESX addon account
qbAccount = 'ambulance', -- QBCore society/job account
}
Wasabi versions
config.lua
Config.Wasabi = {
-- checked in order, first one running wins
resources = {
{ name = 'wasabi_ambulance_v2', version = 'v2' },
{ name = 'wasabi_ambulance', version = 'v1' },
},
}
Standing medic stations
config.lua
Config.StandingMedic = {
enable = true,
searchRadius = 15.0, -- finds downed players this close to the station
interactRadius = 4.0,
price = 1500, -- paid by the player who brought them
crutchMinutes = 5,
reviveCooldown = 300, -- seconds before the same player can be revived here again
requestCooldown = 3,
treatmentTime = 6000,
defaultPed = 's_m_m_paramedic_01',
locations = {
{ coords = vector3(-247.3, 6331.8, 32.4), heading = 50.0, label = 'Paleto Bay Aid Station', ped = 's_m_m_paramedic_01', blip = true },
},
blipSprite = 61, blipColour = 2, blipScale = 0.85,
}
Rescue medic & hospital ride
config.lua
Config.RescueMedic = {
enable = true,
inaccessibleRoadDistance = 55.0, -- no road this close = unreachable
inaccessibleHeightDiff = 18.0, -- rooftops
waterCheckRadius = 6.0,
transportToHospital = true,
speed = 18.0,
vehicle = { model = 'ambulance', ped = 's_m_m_paramedic_01', label = 'Ground Ambulance' },
crutchMinutes = 10,
hospitals = {
vector3(298.6, -584.7, 43.2), -- Pillbox
},
hospitalArriveDistance = 15.0,
hospitalStoppedTimeoutMs = 5000,
hospitalNearMissRadius = 40.0,
hospitalStuckTeleportMs = 30000, -- no progress for this long = teleport to hospital
leaveVehicleTimeoutMs = 6000,
forceReviveTimeoutMs = 45000, -- medic teleports in and revives after this
fieldRevivePercent = 0.20, -- on-scene health when a hospital ride follows
}
Config.HospitalFullHeal = {
enable = true,
fadeOutMs = 1500,
fadeInMs = 800,
}
With
transportToHospital = true, the on-scene revive is a weak stabilization and the real heal happens at the hospital. Set it to false to treat fully on the spot using the mini-game result.Cinematic camera
config.lua
Config.CinematicCamera = {
enable = true,
camDistance = 2.4,
camHeight = 1.3,
fov = 42.0,
transitionMs = 800,
}
Revival mini-game
config.lua
Config.RevivalMinigame = {
enable = true,
control = 51, -- E
pressesForFull = 20,
baseHealth = 120, -- didn't take part
bonusHealth = 200, -- perfect
}
Job call
config.lua
Config.JobCall = {
enable = true,
command = 'medic', -- /medic [player id]
allowedJobs = { 'police', 'ambulance' },
requireOnDuty = true, -- QBCore only
maxCallDistance = 10.0,
}