JCKSDocs
JCKS JobsV1Referência

Dispatch settings

Options of data/config.dispatch.lua in JCKS Jobs 1.0.0: dispatch, forensics, cameras, alerts, jail and evidence.

What these modules do in game is on MDT and dispatch. Server only values of the same sections, the penal code, reports and wiretaps are on Server only settings.

Dispatch

Key Type Default What it changes
Config.Dispatch.enabled boolean true Dispatch and MDT
Config.Dispatch.jobs table { police = true, sheriff = true } Jobs with police powers
Config.Dispatch.ems table { ambulance = true } Jobs with EMS powers
Config.Dispatch.command string 'dispatch' Dispatch center
Config.Dispatch.mdtCommand string 'mdt' MDT
Config.Dispatch.mdtCommandEnabled boolean true false = the MDT opens only from the item
Config.Dispatch.mdtItem string 'mdt' Usable item that opens the MDT, '' = none
Config.Dispatch.mdtJobs list {} Jobs that may open the MDT, empty = police and EMS jobs
Config.Dispatch.callCommand string '911' Civilian police call
Config.Dispatch.emsCommand string 'ems' Civilian ambulance call
Config.Dispatch.officerDownCommand string 'officerdown' 10-13
Config.Dispatch.backupCommand string 'backup' 10-78
Config.Dispatch.stopCommand string 'trafficstop' 10-38
Config.Dispatch.autoShow boolean false Shows the center on a new call without taking the mouse
Config.Dispatch.supervisorGrade number 3 Grade that sends units to calls
Config.Dispatch.mapStyle string 'game' 'game', 'render', 'print' or 'grid'
Config.Dispatch.mapTiles string '' Own tiles, {z}/{x}/{y} layout, {style} is replaced too
Config.Dispatch.historySize number 40 Cleared calls kept in the history
Config.Dispatch.popups.enabled boolean true Call cards
Config.Dispatch.popups.seconds number 9 How long a card stays, urgent calls half as long again
Config.Dispatch.popups.max number 3 Cards shown at once
Config.Dispatch.gameSound boolean true GTA alert sound on a new call
Config.Dispatch.onSceneRadius number 40.0 Meters, a responding unit switches to on scene
Config.Dispatch.keys table see MDT and dispatch Hotkeys, '' = no default, false = not registered

Forensics

Key Type Default What it changes
Config.Forensics.enabled boolean true Forensics
Config.Forensics.key string '' Forensic mode key
Config.Forensics.commands table mode = 'forensics', gsr = 'gsr', sample = 'fingerprint', vehicle = 'searchtraces' Command names
Config.Forensics.askCaseNumber boolean true Asks for a case number when collecting
Config.Forensics.collectTime number 4000 Ms per trace
Config.Forensics.vehicleCollectTime number 9000 Ms for all traces of a vehicle
Config.Forensics.bloodThreshold number 8 Health lost in one hit before blood drops
Config.Forensics.bareHands list 0 to 15, 112, 113, 114, 184, 196, 198 Drawables of ped component 3 (arms) that count as bare hands. Any other drawable counts as gloves and leaves no fingerprints

Security cameras

Key Type Default What it changes
Config.Cameras.enabled boolean true /cameras
Config.Cameras.command string 'cameras' Command
Config.Cameras.jobs table { police = true, sheriff = true } Jobs that may watch
Config.Cameras.minGrade number 0 Lowest grade
Config.Cameras.list list 5 cameras label, group, coords, rot, fov, pan

Crime alerts

Key Type Default What it changes
Config.Alerts.enabled boolean true Automatic alerts
Config.Alerts.exemptJobs table police, sheriff, ambulance Never reported for shooting, speeding or fights
Config.Alerts.requireWitness boolean true An NPC must be near
Config.Alerts.witnessChance number 75 Percent a witness calls
Config.Alerts.plateChance number 60 Percent the plate is in the call
Config.Alerts.shooting boolean true Shots fired
Config.Alerts.ignoreSuppressed boolean true Suppressed weapons are not reported
Config.Alerts.ignoredWeapons list stun gun, BZ gas, snowball, flare, ball, petrol can, hazard can, extinguisher, flare gun Never reported
Config.Alerts.suppressors list component hashes Components that count as suppressors
Config.Alerts.speeding.enabled boolean true Speeding alerts
Config.Alerts.speeding.limit number 160 km/h
Config.Alerts.speeding.cityOnly boolean true Only inside cityZones
Config.Alerts.fights boolean true Fights
Config.Alerts.death boolean true Civilian or officer down
Config.Alerts.cooldowns table shooting 45, speeding 90, fight 60, down 30, theft 60 Seconds per player and kind

Jail

Key Type Default What it changes
Config.Jail.enabled boolean true Jail
Config.Jail.jobs list {} Jobs that may jail, empty = police jobs
Config.Jail.minutesPerMonth number 1.0 Real minutes per month of sentence
Config.Jail.maxMonths number 120 Longest sentence
Config.Jail.requireRestrained boolean true Suspect must be restrained
Config.Jail.releaseGrade number 3 Police grade for /unjail
Config.Jail.command string 'jail' /jail id months reason
Config.Jail.releaseCommand string 'unjail' /unjail id
Config.Jail.booking list Mission Row, Sandy Shores, Paleto Bay, Bolingbroke gate Booking points, empty = anywhere
Config.Jail.bookingRadius number 40.0 Meters around a booking point
Config.Jail.coords vector prison yard Where prisoners appear
Config.Jail.radius number 170.0 Leaving it is an escape attempt
Config.Jail.allowEscape boolean false true = escape with a 10-98 call, false = brought back
Config.Jail.escapedBackToJail boolean false Escaped prisoners go back on the next join
Config.Jail.release vector outside the gate Release position
Config.Jail.work.enabled boolean true Prison work
Config.Jail.work.seconds number 30 Seconds off per task
Config.Jail.work.duration number 8000 Ms per task
Config.Jail.work.spots list 7 yard spots Work positions

Evidence

Key Type Default What it changes
Config.Evidence.enabled boolean true Evidence locker
Config.Evidence.command string 'evidence' Command
Config.Evidence.categories list blood, fingerprint, weapon, casing, document, other Categories
Config.Evidence.jobs table { police = true, sheriff = true } Jobs that log, search and transfer