JCKSDocs
JCKS JobsV2Recursos

MDT and dispatch

Dispatch center, call cards, MDT tablet and its permissions, evidence, forensics, jail, panic, crime alerts, bodycams, cameras and wiretaps.

Options are in settings/config.dispatch.lua (dispatch, forensics, cameras, alerts, MDT, jail, evidence) and settings/server/config.lua (reports, penal code, wiretap, court, field training, internal affairs). Police jobs are Config.Dispatch.jobs, EMS jobs Config.Dispatch.ems, fire jobs Config.Dispatch.fire. A job in a group with the dispatch switch takes the role of the group.

Commands

Command Who What
/dispatch police, EMS, fire Dispatch center
/mdt mdtJobs, or police, EMS and (with Config.Mdt.fire) fire MDT tablet. mdtCommandEnabled = false leaves only the item. With jcks_electronics providing the MDT it needs its tablet, laptop or a service vehicle
/911 <text> everyone Police call from your position (code 10-31)
/ems <text> everyone Ambulance call (code 10-52)
/officerdown police Priority 10-13 for every unit, 30 s cooldown
/backup police 10-78 at your position, /backup urgent for priority
/trafficstop police 10-38 on the vehicle in front of you
/jail id months reason police Sends a restrained suspect to prison
/unjail id police from releaseGrade, admins Releases a prisoner early
/evidence Config.Evidence.jobs Evidence locker
/cameras Config.Cameras.jobs Security cameras
/forensics, /gsr, /fingerprint, /searchtraces Config.Evidence.jobs Forensic mode, GSR test, fingerprints and DNA, collect all traces of a vehicle
/panic, /panicb Config.Panic.jobs Panic 10-99, crash 10-50
/bodycam, /bodycams, /bodycammark Config.Bodycam.jobs Own camera, live cameras, save a clip
/unitblips units Hide or show unit blips for yourself

Dispatch center and call cards

The dispatch center shows the call list with filters, a live map of Los Santos and Blaine County with calls, units and routes, the selected call with code, street, distance, info lines, notes and triage, a history of cleared calls and a strip of every unit with callsign, status, vehicle type and siren. Supervisors (supervisorGrade, default 3) send units to calls. The selected call lists the nearest units with distance and ETA.

Call cards

New calls stack up as cards at one edge of the screen (Config.Dispatch.hud.position). The newest call is on top and open: code, title, street and area, distance with an arrow that points to the call from where the camera looks and the compass direction, time since the call, units responding, what the caller saw (weapon, suspect, vehicle, plate, direction, injury), key hints and a timer bar. Older cards fold to two lines, more than popups.max cards collapse into a counter. The stripe and the code take the colour of the priority or of the code, every priority has its own chime.

Panic and officer down calls are pinned on top with a red band and a blinking frame and stay hud.panicSeconds. Units that get the dispatch card for a panic or service call do not get a second Pulse alert for it.

The list key (Page Up) opens every active call at the same edge, driven with the same keys and no mouse. The hide key (Page Down) hides the cards, the blips stay, the choice is kept per player after a relog, and panic cards still show with hud.panicIgnoresHide. Distance and arrow are refreshed every hud.distanceInterval ms and only while a card, the list or the center is on the screen. Nothing runs while there are none.

Key Default Action
toggle HOME Show or hide the dispatch center
focus Left Alt Take the mouse to click, type notes, triage
prev, next Up, Down Previous or next call (cards, call list and center)
respond Right Respond and draw the GPS route, press again to stop
gps Left Waypoint only
list Page Up Open or close the list of every active call
hide Page Down Hide or show the call cards
dismiss Delete Hide the selected call
status End Cycle 10-8, busy, 10-7
backup, stop none Backup and traffic stop

Keys are in Config.Dispatch.keys. '' = no default key, false = not registered. Players rebind them in GTA Settings, Key Bindings, FiveM.

Call blips

Every call gets a blip for the units that receive it. It flashes for blips.flash seconds, fades out over the second half of blips.lifetime and disappears, the call stays in the list. The call a unit responds to keeps its blip and GPS route until the unit arrives or stops responding. Calls with a radius show a search circle.

Who receives which call

Without an entry, police calls go to Config.Dispatch.jobs, EMS calls to ems, fire calls to fire, plus groups that share dispatch. receivers.codes sends a code to a fixed list of jobs instead, receivers.ignore keeps codes away from a job. A call with a job list (from receivers.codes or jobs in SendDispatch) is hidden from every other job, and the server refuses list, respond, notes, assign and clear for them.

lua
receivers = {
    codes = {},
    ignore = {},
},

Example values: codes = { ['10-50'] = { 'police', 'ambulance' } }, ignore = { ambulance = { '10-11' } }.

Units have a callsign (saved per character) and a status: available, busy, enroute, onscene, offline. Responding sets en route, arriving within onSceneRadius sets on scene. EMS triage EMS calls red, yellow, green or black.

The map uses the GTA V map tiles loaded from Rockstar servers in game, render or print style, or grid without pictures. mapTiles points to your own tiles with the same {z}/{x}/{y} layout.

Dispatch options

Key Type Default What it changes
enabled boolean true Dispatch at all
jobs table { police = true, sheriff = true } Police jobs
ems table { ambulance = true } EMS jobs
fire table {} Fire jobs. Empty = fire calls go to police and EMS
command, mdtCommand string 'dispatch', 'mdt' Command names
mdtCommandEnabled boolean true /mdt works, false = item only
mdtItem string 'mdt' Usable item that opens the MDT, '' = none
mdtJobs table {} Jobs that may open the MDT, empty = police and EMS
callCommand, emsCommand string '911', 'ems' Civilian call commands
officerDownCommand, backupCommand, stopCommand string 'officerdown', 'backup', 'trafficstop' Police quick commands
autoShow boolean false Show the center on a new call without the mouse
supervisorGrade number 3 Send units, clear any call
clearBy string 'assigned' Who clears a call: assigned, any or supervisor
codes table call911 = '10-31', callEms = '10-52', backup = '10-78', stop = '10-38', officerDown = '10-13', panic = '10-99', crash = '10-50', escape = '10-98' Radio codes, up to 12 characters
officerDown.maxOffset number 25 No longer used, the call always takes the officer's position from the server. Kept so old configs load
officerDown.cooldown number 30 Seconds between two officer down calls
quick.backupCooldown number 20 Seconds between two backup requests
quick.stopCooldown number 15 Seconds between two traffic stops
quick.stopDistance number 45 Metres to the stopped vehicle
mapStyle string 'game' game, render, print or grid
mapTiles string '' Your own tile URL
historySize number 40 Cleared calls in the history
historyDays number 7 Days cleared calls stay in the database, 0 = memory only
popups.enabled boolean true Call cards
popups.seconds number 9 Seconds a card stays
popups.max number 4 Cards shown at once, 1 to 6. Older calls stay in the list
popups.provider string 'auto' auto, jobs or electronics, see Optional resources
hud.position string 'right' right, left, top-right, top-left, bottom-right, bottom-left
hud.offset number 22 % of the screen height from the top for right and left, 0 to 70
hud.scale number 1.0 Card size, 0.8 to 1.4
hud.width number 340 Card width in pixels at scale 1.0, 280 to 460
hud.panicSeconds number 30 Seconds a panic or officer down card stays, 5 to 120
hud.listSeconds number 20 Seconds the call list stays open without a key press
hud.distanceInterval number 1000 ms between two distance and arrow updates, 250 to 5000
hud.panicIgnoresHide boolean true Panic cards show even when the player hid the cards
hud.sounds table [1] = 'soft', [2] = 'dispatch', [3] = 'urgent', panic = 'panic' Chime per priority and for panic: soft, dispatch, urgent, panic or none
hud.volume number 0.7 Chime volume, 0.0 to 1.0
hud.gameSounds table none for priority 1, Event_Start_Text for 2 and 3, TIMER_STOP for panic GTA frontend sound { name, soundset } per priority with gameSound, false = none
hud.priorityColors table [1] = '#8E8E93', [2] = '#FF9F0A', [3] = '#FF453A' Stripe and code colour by priority
hud.codeColors table 10-99, 10-13 red, 10-52 green, 10-38 blue, 10-78 purple Colour by code, wins over the priority colour
blips.lifetime number 600 Seconds a call blip stays, 0 = until the call is cleared
blips.fade boolean true Fade out over the second half of the lifetime
blips.flash number 15 Seconds a new blip flashes, 0 = never
blips.route boolean true Responding draws the GPS route, false = waypoint only
blips.routeColour number 0 GTA colour of the route line, 0 = colour of the blip
blips.codes table 10-99, 10-13 sprite 526 red, 10-71 sprite 110 red sprite, colour, scale per code. Calls from other scripts with their own sprite keep it
receivers.codes table {} Code to the jobs that receive it instead
receivers.ignore table {} Job to the codes it never receives
gameSound boolean true GTA alert sound on a new call, on top of the chime
onSceneRadius number 40.0 Metres for automatic on scene

Live in /jobadmin, Server settings, Dispatch: jobs, ems, fire, mdtJobs, mdtItem, mdtCommandEnabled, requireDuty, mapStyle, autoShow, supervisorGrade, popups.enabled, popups.seconds, popups.max, popups.provider, hud.position, hud.scale, hud.panicSeconds, blips.lifetime, blips.fade, blips.route, gameSound, onSceneRadius, historySize, plus MDT device, vehicle MDT, unit blip, panic and service call options.

Server only (settings/server/config.lua): Config.Dispatch.requireDuty = true (only clocked in units get calls), callLifetime = 1200 (seconds without activity before a call closes, 0 = never), maxCalls = 60, warrantMail = true (the wanted person gets a phone mail), warrantExpiryDays = 30.

MDT

The MDT is a rugged tablet (Config.UI.deviceFrames), held in the hands on foot. EMS see the medical side. Fire jobs get a reduced tablet with overview, dispatch, fire incident reports, roster, bulletin board and procedures when Config.Mdt.fire is on.

Pages: dashboard with search, totals and live lists, bulletin board, person and vehicle search, units roster with callsigns, person files (vehicles, warrants, reports, evidence, driving licences, permits, unpaid fines, medical file, mugshot, flags, officer notes, wiretap), vehicle files, reports with the penal code calculator, cases, procedures (SOP) with read confirmations, warrants, firearms registry, evidence, penal code, court calendar, field training, internal affairs. BOLOs and ALPR show only with jcks_vehicles. Other resources add their own pages, person and vehicle tabs and search results through MdtRegisterPage, MdtRegisterPersonTab, MdtRegisterVehicleTab and MdtRegisterSearch.

Every MDT action is written to jcks_job_mdt_logs.

Reports and penal code

Report types are incident, arrest, traffic, medical. Charges come from Config.PenalCode (editable in /jobadmin, Penal code). The server recalculates fines. Bill sends each suspect a normal invoice, Sentence sends every suspect at the booking desk to prison for the report's months. A report cannot be billed or sentenced twice. With requireApproval = true a supervisor approves a filed report first.

Key Type Default What it changes
Config.Reports.types table { 'incident', 'arrest', 'traffic', 'medical' } Report types
maxInvolved number 12 People and vehicles per report
maxCharges number 20 Charges per report
requireDuty boolean true The MDT works only on duty
seizeMinGrade number 1 Seize a vehicle
licenseMinGrade number 1 Suspend or revoke driving licences (needs jcks_vehicles)
maxSuspendDays number 30 Longest suspension
permitTypes table { weapon = true, hunting = true, fishing = true } Bridge licence types police issue in the MDT
permitMinGrade number 2 Grant and revoke permits
bulletinMinGrade number 2 Post, pin and remove notices
bulletinLimit number 30 Notices kept per department
rosterMinGrade number 3 Change other officers' callsigns
crushMinGrade number 3 Send a seized vehicle to the crusher (needs jcks_vehicles)
tags table 7 flags Flags on a person file
photoHosts table fivemanage, imgur, discord hosts Hosts accepted for mugshot links (https)
maxNotes number 50 Officer notes per person
warrantMinGrade number 1 Issue warrants
listLimit number 60 Reports in the list
billBy string 'author' Who bills a report: author, supervisor, any
requireApproval boolean false Supervisor approval before billing or jail

MDT permissions

Config.Reports.permissions sets the lowest grade per action. Lookup order: jobs.<job name>, then the role table (police, ems, fire), then the single *MinGrade options, then the built in default. false = nobody. The same rights are editable per grade in the job editor.

Key Action Built in default
report_delete Delete any report 4
report_approve Approve reports of others 3
warrant Issue warrants (police) warrantMinGrade
seize, crush Seize, crush vehicles (police) seizeMinGrade, crushMinGrade
license Suspend and revoke driving licences (police) licenseMinGrade
permit Grant and revoke permits (police) permitMinGrade
wiretap Open wiretaps (police) Config.Wiretap.minGrade
penal_edit Edit the penal code (police) 4
court Schedule hearings, record outcomes (police) 2
bulletin, sop Post notices, write procedures bulletinMinGrade
roster Change callsigns rosterMinGrade
fto Field training evaluations 2
ia Internal affairs 4
commend Commendations 3
dutylog Duty log of others 2
bodycam_archive Clips of the whole department 2
bodycam_notes Notes and important flag on clips 2
bodycam_export Clips to evidence and reports 2
el_numbers, el_lawful, el_devices, el_imei, el_phone Phone number lookup, lawful access, seized devices, IMEI blocking and the Phone tab of jcks_electronics (police) 0
lua
Config.Reports.permissions = {
    police = { ia = 5 },
    ems = {},
    fire = {},
    jobs = { sheriff = { warrant = 2, penal_edit = false } },
}

MDT device and vehicle MDT

Key Type Default What it changes
Config.Mdt.enabled boolean true false turns off /mdt, the item, the quick menu entries and every MDT request
Config.Mdt.deviceProvider string 'auto' auto, item, vehicle or electronics
Config.Mdt.requireDevice boolean false Every MDT request needs a device from deviceProvider
Config.Mdt.fire boolean true Fire jobs open a reduced MDT
Config.Mdt.fireReportsToPolice boolean true Police read fire incident reports
vehicle.enabled boolean true MDT in service vehicles
vehicle.classes table { 18 } GTA classes that count
vehicle.emergencyModels table police, sheriff, fbi, ambulance, firetruk and more Models treated as class 18
vehicle.modelClasses table {} Extra model to class pairs
vehicle.models table {} Spawn names that count
vehicle.platePrefixes table {} Plate prefixes that count
vehicle.jobGarage boolean true Vehicles from a garage of an allowed job count
vehicle.jobs table {} Jobs that may use it, empty = police, EMS and fire
vehicle.seats table { -1, 0 } Seats: -1 driver, 0 front passenger
vehicle.whileMoving string 'passenger' passenger, all or none
vehicle.driverMaxSpeed number 10 km/h above which the driver gets the driving mode
vehicle.key string 'F10' Default key

deviceProvider values: auto uses jcks_electronics when it runs with its MDT module on (rugged tablet, Toughbook, laptop), otherwise the item plus a service vehicle. item is only Config.Dispatch.mdtItem in the inventory, vehicle the item or a seat in an allowed service vehicle, electronics only a tablet or laptop of jcks_electronics (without it nobody has a device). While jcks_electronics provides the MDT (auto with its module on, or electronics), the MDT opens only on a carried tablet or laptop or in a service vehicle, /mdt works only with that device and the mdt item tells the player to use the tablet. With a jcks_electronics device the window shows its model, colour, battery and signal, an empty battery or no signal locks it.

The server reads the vehicle class from its own model lists, never from the client. In the car the MDT has a car page with ALPR and radar readings of jcks_vehicles, the dashcam, unit status and navigation. The driving mode has large buttons only.

Evidence and forensics

The evidence locker, traces (blood, casings with calibre and serial, bullet impacts, fingerprints on vehicles and doors, gunshot residue), the forensic mode and flashlight view, rain, evidence bags and the lab analysis have their own page: Evidence and forensics.

Jail

A restrained suspect is sent to prison from a booking point (target option or /jail). One month of the sentence is minutesPerMonth real minutes. Time runs while the prisoner is online and survives reconnects and restarts. Prison work (yard cleaning, laundry, kitchen, workshop) takes time off, a task with a minigame gives no time off when the game fails. Leaving the prison radius is an escape with a 10-98 call, an MDT warrant and a search area for police.

Key Type Default What it changes
enabled boolean true Jail
jobs table {} Jobs that may jail, empty = police jobs
minutesPerMonth number 1.0 Real minutes per month
tickSeconds number 10 Seconds between server checks
sentenceDistance number 4.0 Metres from officer to suspect
maxMonths number 120 Longest sentence
requireRestrained boolean true The suspect must be cuffed or zip tied
releaseGrade number 3 Grade for /unjail
command, releaseCommand string 'jail', 'unjail' Commands
booking table Mission Row, Sandy Shores, Paleto Bay, Bolingbroke gate Booking points, empty = anywhere
bookingRadius number 40.0 Metres around a booking point
coords, radius vector, number prison yard, 170.0 Where prisoners appear, escape radius
allowEscape boolean true false puts escapees back into the yard
escapedBackToJail boolean true Escapees serve the rest on their next join
release vector4 outside the gate Release position
work.enabled, work.seconds, work.duration, work.distance, work.repeatSpot true, 30, 8000, 3.0, false Prison yard cleaning
work.tasks table laundry, kitchen, workshop More prison jobs with animation, tool, minigame, difficulty, time off and spots
escapeWarrant boolean true An escape creates an MDT warrant
escapeBlipSeconds number 300 Seconds police see the search area, 0 = none

Panic button and crime alerts

/panic (10-99) and /panicb (10-50) send a Pulse alert to the job and its group and, with Config.Panic.dispatch, a call to every police and EMS unit. The unit blip blinks red for Config.DutyBlips.panicSeconds.

Crime alerts are created by the game: shots fired, speeding in the city, fights, civilian and officer down, and vehicle thefts from jcks_vehicles. Drug scripts send their own alerts through exports.jcks_jobs:SendCrimeAlert('drugs', coords, data). A witness NPC has to be near (requireWitness), suppressed weapons stay silent.

Key Type Default What it changes
Config.Alerts.enabled boolean true Crime alerts
exemptJobs table police, sheriff, ambulance Never reported
requireWitness boolean true An NPC must be near
witnessChance number 75 % a witness calls it in
plateChance number 60 % the caller reads the plate
shooting, fights, death boolean true Alert kinds
ignoreSuppressed boolean true Suppressed weapons are not reported
speeding.enabled, speeding.limit, speeding.cityOnly true, 160, true Speeding in km/h, only in cityZones
cooldowns table shooting 45, speeding 90, fight 60, down 30, theft 60 Seconds per player
kinds table per kind code, priority, blip, ems How each alert lands in dispatch

Server only: Config.Alerts.shootingRadius = 25 (position offset), Config.Alerts.vehicleTheft = true.

Bodycam

/bodycam turns the camera on (REC overlay). /bodycams or the boss menu page lists live cameras of the job and its group. The server records a timeline (position, speed, vehicle, siren, weapon, health, call, status, radio) while a camera runs and saves clips on triggers: weapon drawn, shot, hit, panic, crash, arrest, traffic stop, siren, call response, or the mark key. Switching the camera off during a call or right after a shot saves a clip and warns internal affairs. Clips and jcks_vehicles dashcam events share the table jcks_job_dashcam_events with an integrity hash.

Key Type Default What it changes
enabled boolean true Bodycam
jobs table police, sheriff, ambulance Jobs with a bodycam
bossMenu boolean true Bodycams page in the boss menu
command, viewCommand string 'bodycam', 'bodycams' Commands, false = none
key string '' Default key
requireDuty boolean true Only on duty
autoOffOffDuty boolean true Going off duty switches it off
model string 'AXON BODY 3' Model name in the overlay
showOwnOverlay boolean true Overlay for the wearer
archiveDays number 14 Days clips are kept, 0 = forever. Important and evidence clips stay
provider string 'auto' auto, jobs or electronics
record.enabled boolean true Recorder and archive
record.sampleSeconds, keyframeSeconds number 2, 10 Sample rates
record.preSeconds, postSeconds, maxClipSeconds number 30, 60, 600 Clip length
record.nearbyRadius, nearbyPlayers, nearbyVehicles 30.0, 10, 8 People and vehicles stored
record.maxClipsPerHour, maxClipsPerMinute, cooldown number 20, 60, 20 Limits
record.crashSeverity number 2 Lowest crash severity that starts a clip
record.hitDistance, hitClipsPerAttacker number 300, 4 Hit trigger limits
record.tamperSeconds number 60 Tamper window after a shot
record.markKey, markCommand string '', 'bodycammark' Save a clip by hand
record.triggers table all true Automatic triggers

Server only: Config.Bodycam.item = '', Config.Bodycam.viewMinGrade = 2.

Security and business cameras

/cameras opens the camera list for Config.Cameras.jobs from minGrade: mouse looks around, scroll zooms, arrows switch, H night vision, Backspace leaves. Add your own cameras to Config.Cameras.list.

Business cameras: a grade with the cameras permission installs them from the boss menu. The game camera position is saved with E. The server checks reach, range to a job location and maxPerJob. A shared camera shows in /cameras for shareWith jobs and every view is logged. Stored in jcks_job_cameras.

Key Default
business.enabled true
business.maxPerJob 6
business.range 80.0
business.reach 4.0
business.shareWith { police = true, sheriff = true }
business.fov, business.pan 70.0, 60.0

Wiretaps

Police from Config.Wiretap.minGrade open a wiretap in MDT, Person, Wiretap. With requireWarrant the person needs an active warrant. Triangulate phone marks an area of locateAccuracy metres on the GPS. Intercepted texts and calls come from jcks_bridge (lb-phone automatically, other phones through exports.jcks_bridge:PhoneIntercept) or from jcks_electronics.

Key Type Default What it changes
enabled boolean true Wiretaps
minGrade number 2 Grade that opens a wiretap
requireWarrant boolean true Active warrant needed
maxHours number 72 Longest wiretap
phoneItems table { 'phone' } Target must carry one to be located
locateCooldown number 60 Seconds between two triangulations
locateAccuracy number 160.0 Radius in metres
keepDays number 30 Days records are kept
provider string 'auto' auto, jobs or electronics

Court, field training, internal affairs

Key Default What it changes
Config.Court.enabled true Court page and hearings
Config.Court.judgeJobs { judge = true, doj = true } Jobs picked as judge
Config.Court.rooms Courtroom 1 to 3 Rooms, two hearings never share a room at once
Config.Court.defaultMinutes, maxMinutes 30, 240 Hearing length
Config.Court.maxDaysAhead, maxParticipants 60, 12 Planning limits
Config.Court.notify, mail true, true Notification and phone mail to participants
Config.Court.keepDays 180 Old hearings deleted on start
Config.Fto.enabled true Field training evaluations
Config.Fto.traineeMaxGrade 0 Grades listed as trainees
Config.Fto.categories driving, radio, reports, tactics, conduct, knowledge Rated categories, 1 to 5 points
Config.Fto.maxPerMember 100 Evaluations kept
Config.InternalAffairs.enabled true IA page
Config.InternalAffairs.hideFromSubject true Investigated members never see their case

Calls from other resources

lua
exports.jcks_jobs:SendDispatch({
    kind = 'police',
    code = '10-66',
    title = 'Shots fired',
    message = 'Several shots near the pier',
    priority = 3,
    coords = vector3(-1850.2, -1231.4, 13.0),
    street = 'Del Perro Pier',
    blip = 110,
    jobs = { 'police', 'sheriff' },
    radius = 120,
    info = {
        { icon = 'weapon', text = 'Pistol' },
        { icon = 'vehicle', text = 'Black Sultan RS' },
        { icon = 'plate', text = '52 LSP 118' },
    },
})

kind is police, ems or fire. priority is 1 (low), 2 (medium) or 3 (critical). street, blip (sprite), jobs (only these jobs receive and see the call), radius (metres, 10 to 500, the blip becomes a search circle) and panic (true = pinned red card) are optional.

Scripts written for ps-dispatch or cd_dispatch send their calls here through the compatibility resources.

Info icons: gender weapon vehicle plate color speed direction caller person phone note injury. More exports in API.