Invoices, the card terminal and the bodycam from this file are documented on Invoices and MDT and dispatch. Every module has its own enabled switch. Turn off what another resource already does.
Duty blips
On duty colleagues and jobs of the same group see each other on the map with callsign, grade, name and dispatch status. Nearby units move in real time, far ones glide between updates. The icon follows the vehicle type and flashes with lights and siren on.
| Key | Type | Default | What it changes |
|---|---|---|---|
Config.DutyBlips.enabled |
boolean | true |
Unit blips |
interval |
number | 3 |
Seconds between position updates |
smooth |
boolean | true |
Smooth movement |
showCallsign |
boolean | true |
[1A-12] in front of the name |
showStatus |
boolean | true |
Dispatch status after the name |
toggleCommand |
string | 'unitblips' |
Players hide their blips, '' = off |
sprites |
table | foot 1, car 56, bike 226, heli 43, plane 423, boat 427 | Icon by vehicle type |
jobs |
table | police, sheriff, ambulance, mechanic | Sprite, colour and label per job |
Server only: showNames = true, showGrade = true, requireGpsItem = false, gpsItem = 'gps', showSelf = false, sirenFlash = true, panicSeconds = 60.
Panic button
| Key | Type | Default | What it changes |
|---|---|---|---|
Config.Panic.enabled |
boolean | true |
Panic button |
jobs |
table | { 'police', 'sheriff', 'ambulance' } |
Jobs with a panic button |
command |
string | 'panic' |
Officer or medic in danger, 10-99 |
crashCommand |
string | 'panicb' |
Unit crash, 10-50 |
key, crashKey |
string | '' |
Default keys |
Server only: cooldown = 60, blipTime = 90, dispatch = true (also a call for every police and EMS unit). ServerEditable.OnPanic(src, jobName, coords) runs on every panic.
With dispatch = true police and EMS units on duty get a pinned red call card. Units that get the card do not get a second Pulse alert, the rest of the job group (for example firefighters) gets the Pulse alert with a blip.
Service calls
/call police Someone is robbing the store or F6, Services. On duty employees get an alert with a blip. /respond sets the GPS and tells the caller a unit is on the way.
| Key | Type | Default | What it changes |
|---|---|---|---|
Config.ServiceCalls.enabled |
boolean | true |
Service calls |
command |
string | 'call' |
false = only through F6 |
respondCommand |
string | 'respond' |
Respond to the latest call |
respondKey |
string | '' |
Default key |
provider |
string | 'auto' |
auto, jobs or electronics (company line on phones) |
jobs |
table | police, ambulance, mechanic, taxi | Callable jobs with label and icon |
Server only: cooldown = 60, blipTime = 120, anonymous = false. ServerEditable.OnServiceCall(src, jobName, message, coords) returns true when your own dispatch handled the call.
Job actions
Target options for the jobs listed in each action. jobs = false means everybody. item requires an item, removed when consume is true. Revive, heal and impound call editable/server.lua.
| Action | Jobs | Duration ms |
|---|---|---|
checkId |
police, sheriff | |
revive |
ambulance | 8000 |
heal |
ambulance | 5000 |
repair |
mechanic | 10000 |
clean |
mechanic | 5000 |
flip |
mechanic, police, sheriff | 4000 |
unlock |
police, sheriff, mechanic | 6000 |
impound |
police, sheriff, mechanic | 5000 |
Config.JobActions.enabled = true, Config.JobActions.requireDuty = true.
Medical
Config.Medical.enabled = 'auto' turns the built in system on unless one of competingResources runs (esx_ambulancejob, qb-ambulancejob, qbx_medical, wasabi_ambulance, ars_ambulancejob, osp_ambulance, ak47_ambulancejob).
Players go down instead of dying. G calls EMS, E respawns at the closest hospital after respawnMinutes, H calls an NPC medic when no EMS is on duty. Being down survives a reconnect. Injuries per body part and kind (gunshot, stab, blunt, burn, crash, fall, animal) have a severity of 0 to 100 %. Legs limp from limpAt, arms shake the aim, head injuries blur the view, gunshot and stab wounds bleed.
/examine shows and treats the closest player, /injuries your own. Admins have /revive [id], /heal [id], /revivearea [radius]. /stretcher spawns a stretcher, the medicalbag item is a shared stash on the ground. Treatments, revives, CPR, doctor, check in, NPC medic and respawns go to the medical file in the MDT.
Health in GTA: 100 = dead, 200 = full.
| Key | Type | Default | What it changes |
|---|---|---|---|
enabled |
boolean or string | 'auto' |
true, false or 'auto' |
distance |
number | 3.0 |
Metres to examine, treat or revive |
injuryThrottleMs |
number | 250 |
One new injury per this time |
respawnMinutes |
number | 5 |
Minutes before hospital respawn |
respawnFee |
number | 1500 |
Hospital respawn fee |
removeItemsOnRespawn |
boolean | false |
See ServerEditable.OnRespawn |
npcMedic, npcAlways |
boolean | true, false |
NPC medic, also while EMS are on duty |
npcDelaySeconds, npcFee |
number | 60, 3000 |
NPC medic delay and fee |
feeToJob |
string | 'ambulance' |
Society that gets hospital fees, false = nowhere |
feeAllowDebt |
boolean | false |
true bills players who cannot pay |
distressCooldown |
number | 90 |
Seconds between distress calls |
downHealth |
number | 110 |
Health while down |
down.camera, voice, chat, interactions |
boolean | true |
What a downed player can still do: look around, push to talk, chat, Alt interactions |
down.showCause, showEms |
boolean | true |
Down screen shows the cause and the EMS on duty |
injuryThreshold |
number | 10 |
Health lost in one hit before it is an injury |
bleedInterval, bleedFloor |
number | 20000, 120 |
ms between bleed ticks, lowest health bleeding reaches |
watchdog.enabled |
boolean | true |
Puts players back down who get up without a revive and logs it |
watchdog.interval, grace, health, logCooldown |
number | 5, 30, 150, 60 |
Watchdog timing |
blockDeadDamage |
boolean | true |
Shots from downed players are dropped |
deadDamageGraceMs |
number | 3000 |
ms after going down in which hits still count |
injuries.severity |
table | gunshot 20, stab 15, blunt 5, burn 10, crash 10, fall 15, animal 10 | % per hit |
injuries.damageScale |
number | 25 |
Health of a hit that adds the full severity |
injuries.deathExtra |
number | 20 |
% added when the hit put the player down |
injuries.bleed |
table | gunshot 10, stab 4, animal 2 | Health per minute at 100 % |
injuries.maxBleedPerMinute |
number | 6 |
Cap of all bleeding |
injuries.limpAt, fallAt, blurAt |
number | 30, 60, 50 |
Effect thresholds in % |
injuries.aimShake |
number | 0.75 |
Aim shake at 100 % arm injury |
injuries.treatAmount |
number | 25 |
% one treatment takes off |
history.enabled, history.keep |
true, 30 |
MDT medical file entries | |
history.kinds |
table | every kind true |
false hides one kind: treat, revive, cpr, doctor, checkin, npc, respawn |
restore.revive, restore.heal |
table | enabled = true, health = 100, armor = -1, hunger = 100, thirst = 100 |
What a revive and a heal give back in %, -1 = leave as it is |
reviveInVehicle |
boolean | true |
A player revived in a vehicle stays in the seat |
reviveItem |
string | 'defibrillator' |
Item EMS need to revive |
consumeReviveItem, reviveItemWear |
false, 0 |
Use up or wear the item | |
reviveTime |
number | 10000 |
ms per revive |
reviveReward, treatReward |
number | 700, 150 |
Paid to the medic |
rewardCooldown |
number | 600 |
Seconds before the same patient pays again |
reviveMinDownSeconds |
number | 60 |
Seconds the patient must be down before a revive pays the medic |
transportReward, transportPerKm, transportMax |
number | 300, 150, 1200 |
Pay for bringing a downed patient to a hospital bed, base, per km and cap (0 = no cap) |
transportMinDistance, transportMinDownSeconds |
number | 300, 30 |
Shortest trip in metres and time down in seconds before a transport pays |
rewardRequireDuty |
boolean | true |
Rewards only on duty |
rewardCapPerHour |
number | 3500 |
Hourly cap, 0 = none |
rewardTo |
string | 'player' |
player or society |
civilianRevive, civilianReviveOnlyWithoutEms, civilianReviveChance |
true, true, 60 |
CPR with firstAidItem |
|
firstAidItem |
string | 'firstaid' |
CPR item |
treatments |
table | per injury kind: item, time, heal |
Items used per injury |
commands |
table | revive, heal, revivearea, examine, injuries | Command names |
gear.stretcher, gear.stretcherCommand, gear.stretcherModel |
true, 'stretcher', 'v_med_emptybed' |
Stretcher | |
gear.bag, bagItem, bagModel, bagSlots, bagWeight |
true, 'medicalbag', 'xm_prop_x17_bag_med_01a', 20, 30000 |
Medical bag | |
checkIn |
table | enabled = true, fee = 750, maxEms = 0, duration = 15000, radius = 3.0 |
Hospital reception |
doctor |
table | enabled = true, price = 1000, duration = 20000, maxEms = 0, cooldown = 300, bedRadius = 25.0 |
Defaults of new NPC doctor points |
beds |
table | enabled = true, radius = 3.0, layTime = 4000, requireDuty = true, timeFactor = 50, height = 0.8, getUpKey = 73 |
Hospital bed points |
hospitals |
table | Pillbox Hill, Sandy Shores, Paleto Bay | Respawn points and beds |
Exports: IsDown(src), Revive(src), Heal(src), GetInjuries(src). See API.