AI Backup
Config.Backup = {
maxActive = 4, -- AI units per player at once
cooldown = 45, -- seconds between requests of the same type
spawnDistance = { min = 140.0, max = 220.0 },
despawnDistance = 260.0,
orders = {
range = 80.0, -- how far you can point at a person / vehicle / spot
blockRadius = 15.0, -- "Close the road": traffic stops within this radius of the patrol car
resistChance = 20, -- % a non-compliant person runs when an AI officer detains them
},
service = { ... },
pursuit = { ... },
}Units
service = {
police = { label = 'Patrol Unit', icon = 'shield', vehicle = 'police', peds = { 'csb_cop' }, crew = 2 },
ambulance = { label = 'Ambulance', icon = 'ambulance', vehicle = 'ambulance', peds = { 's_m_m_paramedic_01' }, crew = 2 },
fire = { label = 'Fire Engine', icon = 'flame', vehicle = 'firetruk', peds = { 's_m_y_fireman_01' }, crew = 2 },
tow = { label = 'Tow Truck', icon = 'truck', vehicle = 'flatbed', peds = { 's_m_m_trucker_01' }, crew = 1 },
transport = { label = 'Prisoner Transport', icon = 'bus', vehicle = 'policet', peds = { 'csb_cop' }, crew = 2 },
},Change vehicle to your own department vehicles (spawn names) and peds to your own models.
Crews use csb_cop because many entity blacklists delete the default GTA cop models. If you use a different model, make sure your anti-cheat or blacklist allows it.
Pursuit backup
Only available during a pursuit.
pursuit = {
light = { label = 'Light', description = '1 patrol unit', icon = 'car', vehicles = { 'police', 'police2' }, peds = { 'csb_cop' }, count = 1 },
medium = { label = 'Medium', description = '2 patrol units', icon = 'siren', vehicles = { 'police3', 'police2' }, peds = { 'csb_cop' }, count = 2 },
heavy = { label = 'Heavy', description = '2 tactical units', icon = 'users', vehicles = { 'fbi2' }, peds = { 's_m_y_swat_01' }, count = 2 },
air = { label = 'Air', description = 'Air support', icon = 'helicopter', vehicles = { 'polmav' }, peds = { 's_m_y_pilot_01' }, count = 1, air = true },
},