JCKSDocs
JCKS JobsV1Funktionen

MDT and dispatch

MDT, dispatch center, call cards, evidence, jail, bodycam, cameras, wiretaps, panic, crime alerts and forensics in JCKS Jobs 1.0.0.

Police jobs are Config.Dispatch.jobs (default police, sheriff), EMS jobs are Config.Dispatch.ems (default ambulance). All options are in data/config.dispatch.lua and the server only file, see Dispatch settings.

MDT

/mdt (Config.Dispatch.mdtCommand) or the usable item mdt (Config.Dispatch.mdtItem) opens the tablet. mdtJobs empty means the police and EMS jobs. EMS only see the medical side. On foot the officer holds a tablet. With Config.UI.deviceFrames = true the MDT looks like a rugged tablet, red for EMS.

Page What it does
Overview Live stats, latest calls, active warrants and your own reports
Search People by name, vehicles by plate, VIN, model or owner name. Internal vehicle ids are never searchable
Units Every unit on duty with callsign, status and current call. Set your own callsign and status
Person Vehicles, warrants, reports, evidence, driving licences (suspend, restore, revoke, penalty points), unpaid fines, traffic tickets, medical file, wiretap
Vehicle Registration, BOLO and stolen flags, seize or crush, dashcam history, technical inspection, parking tickets, wheel clamps, evidence
Reports Incident, arrest, traffic and medical reports. Charges come from Config.PenalCode, the server recalculates fines. Bill sends each suspect a normal JCKS invoice. Filed reports are locked
Evidence The evidence locker, linked to people and vehicles
Warrants, BOLOs, ALPR, Firearms, Penal code Lists with search and quick actions

Vehicle data, licences, tickets, ALPR and the crusher come from jcks_vehicles. Without it these parts stay empty, see Optional resources. A fake plate with a scratched VIN shows OWNER UNKNOWN - DATA REDACTED. Every MDT action is written to jcks_job_mdt_logs.

With Config.Dispatch.warrantMail = true the wanted person gets a phone mail through the bridge phone.

Dispatch center and call cards

/dispatch (Config.Dispatch.command) or F9 toggles the dispatch center: call list with a police and EMS filter, a live map with calls, units and routes, the selected call with code, street, distance, info lines, notes and triage, a history of cleared calls (historySize) and a strip of every unit with callsign, status, vehicle type and siren. The map uses the GTA map tiles in the style mapStyle (game, render, print or grid), mapTiles points to your own tiles.

Each new call slides in as a card on the right (popups): code, title, street, distance and info lines for weapon, suspect, vehicle, plate, direction or injury.

Default key Config key Action
F9 toggle Show or hide the dispatch center
Left Alt focus Take the mouse to click, type notes and triage
Up / Down prev / next Select the previous or next call
Right respond Respond and set the GPS, again to stop
Left gps GPS to the selected call only
Delete dismiss Hide the selected call
End status Cycle your unit status: 10-8, busy, 10-7
none backup Backup request 10-78
none stop Traffic stop 10-38 on the vehicle in front

Players rebind them in Settings, Key Bindings, FiveM. '' in Config.Dispatch.keys means no default key, false means the key is not registered.

Units. Respond switches a unit to en route, arriving within onSceneRadius switches it to on scene, clearing the call sets it to available. Units from supervisorGrade send other units to a call and get the nearest free unit suggested.

Calls. Only units on duty receive calls with requireDuty = true. A call closes itself after callLifetime seconds without activity, past maxCalls the oldest one is dropped. EMS triage EMS calls as Immediate, Urgent, Minor or Deceased, and the list is sorted by priority.

Calls from players

Command Who What
/911 <text> everyone Police call from your position with the street name
/ems <text> everyone Ambulance call
/officerdown police Priority 10-13 for every unit
/backup police 10-78 at your position, /backup urgent is priority 3
/trafficstop police 10-38 on the vehicle in front of you, you are set on scene

Panic button

Jobs in Config.Panic.jobs (default police, sheriff, ambulance) have /panic (10-99) and /panicb (10-50, unit crashed). Both show a Pulse alert to the job group, a flashing blip for Panic.blipTime seconds and, with Panic.dispatch = true, a dispatch call for every police and EMS unit on duty. Cooldown Panic.cooldown seconds per player. Default keys are empty, players bind them.

Unit blips

On-duty colleagues and jobs of the same group in Config.JobGroups (default emergency = { 'police', 'sheriff', 'ambulance' }) see each other on the map with callsign, grade, name and status. The icon follows the vehicle type from Config.DutyBlips.sprites, flashes with the siren on (sirenFlash) and blinks red for panicSeconds after a panic. /unitblips hides them for yourself. With requireGpsItem units need the gps item.

Automatic crime alerts

Config.Alerts creates calls from the game itself:

Kind Code Priority
Shots fired 10-71 3
Speeding 10-11 1
Fight 10-10 2
Civilian down 10-52 2
Officer down 10-13 3
Vehicle theft (jcks_vehicles) 10-60 2
Drug sale (drugs module) 10-19 1

With requireWitness an NPC has to be near, witnessChance and plateChance decide whether the call goes out and contains the plate. Suppressed weapons and ignoredWeapons are not reported. Jobs in exemptJobs are never reported for shooting, speeding or fights.

Evidence locker

/evidence (Config.Evidence.command) or the MDT. Only jobs in Config.Evidence.jobs log, search and transfer evidence. Every item has a category (blood, fingerprint, weapon, casing, document, other), a case number, an optional person and plate and the position where it was logged. Items move through In locker, At the lab, Court, Released or Destroyed, and every step lands in the chain of custody. The officer holds a tablet while it is open.

Forensics

Config.Forensics leaves traces: blood when somebody is hurt, casings when a gun is fired (with the serial of ox_inventory weapons), fingerprints on vehicles touched without gloves, gunshot residue on the shooter's hands for gsrMinutes, washed off in water.

Command What it does
/forensics Forensic mode: shows traces within viewRadius, E collects one with an evidence_bag into the locker
/searchtraces Collects every trace from the closest vehicle
/gsr Tests the closest person for gunshot residue
/fingerprint Takes fingerprints and DNA of a restrained or downed person

In the locker set an item to At the lab and run the analysis: the code is compared with biometrics on file. Casings with a serial are matched against the firearms registry in the MDT. Change Forensics.salt from 'change-me' so the codes are unique to your server.

Jail

A restrained suspect is sent to prison from a booking point (Jail.booking, within bookingRadius) with the target option or /jail id months reason. One month is minutesPerMonth real minutes, at most maxMonths. Time runs while the prisoner is online and survives reconnects and restarts. Prison work at the yard spots takes work.seconds off per task. Leaving radius brings the prisoner back. With allowEscape = true it is an escape with a 10-98 call, and with escapedBackToJail = true an escaped prisoner goes back on the next join. Police from releaseGrade and admins release early with /unjail id.

Bodycam

/bodycam turns the camera on with a REC overlay (Config.Bodycam.jobs, requireDuty). /bodycams lets a grade from viewMinGrade (default 2) watch the live camera of a colleague of the same job group. Backspace leaves the feed. Bodycam.item can require an item to switch it on.

Security cameras

/cameras (Config.Cameras) for police from minGrade: mouse to look around, scroll to zoom, arrows for the next or previous camera, H night vision, Backspace to leave. The cameras are the entries in Config.Cameras.list with label, group, coords, rot, fov and pan.

Wiretaps

Police from Config.Wiretap.minGrade (default 2) open a wiretap in MDT, Person, Wiretap. With requireWarrant the person needs an active warrant. A wiretap lasts up to maxHours and expires on its own.

  • Triangulate phone marks an area with radius locateAccuracy on the GPS. The target must be online and carry one of phoneItems. Cooldown locateCooldown seconds.
  • Intercepted records list texts and calls reported through jcks_bridge: lb-phone automatically, other phones through exports.jcks_bridge:PhoneIntercept. Records are deleted after keepDays.

Radio

Config.Radio with pma-voice or SaltyChat: going on duty joins the job channel from channels, going off duty leaves it. With pma-voice the restricted channels can only be joined by the listed jobs, on duty when requireDuty = true.

Dispatch 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,
    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 and info are optional. Info icons: gender, weapon, vehicle, plate, color, speed, direction, caller, person, phone, note, injury. More dispatch exports are in API.