Docs/Yecoyz MDT

Dispatch

Calls, units, alerts and witnesses in Yecoyz MDT.

Dispatch is built into the MDT. Calls go to the on-duty units of the call's departments as an alert on screen with a sound and a map blip, and the Dispatch page lists every call, who is responding and each unit's status.

Where calls come from

Source How
Witnesses Peds that see or hear a crime call it in (below)
Citizens /911 <message>
Units The backup button in the MDT and the panic button (/panic, bindable)
Other scripts exports.yecoyz_mdt:CreateCall(...) on the server, ReportCrime on the client. See Exports

Alerts

Alerts show even while the MDT is closed. The respond key (G by default) attaches you to the newest call and sets the waypoint.

lua
Config.Dispatch = {
    Enabled = true,
    AlertsOnlyOnDuty = true,
    AlertSeconds = 12,
    RespondKey = 'G',
    BlipMinutes = 5,
    CloseAfterMinutes = 30,    -- an untouched active call closes by itself
    MergeRadius = 80.0,        -- a new call of the same kind this close is added to the active one
    PanicCommand = 'panic',
    CitizenCommands = {
        { command = '911', departments = { 'police', 'ems' } },
    },
}

Each kind of call has a code, priority, departments and blip in Config.Dispatch.Calls.

Units

Units are the department's callsigns (1-ADAM-12, MEDIC-3...) with a type such as patrol, traffic or ambulance. Drag an officer from the on-duty list onto a unit, or click the officer and then the unit. The unit responds to calls, has a status and shows on the map.

  • Officers join and leave units themselves, or set Config.Units.RequireAssignPermission = true so only ranks with units.assign can put officers in units.
  • Ranks with units.manage create, edit and delete units.
  • Going off duty or logging out takes an officer out of their unit.

Witnesses

When a player shoots, fights, kills someone or steals a car, the nearest ped that saw it (facing them with a clear view) or heard it (gunshots) may call it in. The witness holds a phone while calling, and if they are dead by then, nobody calls.

  • Someone who only heard shots gives a rough area instead of the exact spot.
  • Witnesses describe the suspect (up close: mask, headwear, hair, beard, glasses, vest, bag), the weapon, the vehicle and its colour, and sometimes part of the plate.
  • With a suppressor, shots are only heard nearby and only noticed by someone looking.
lua
Config.Witnesses = {
    Enabled = true,
    ReportChance = 0.85,
    CallDelay = { 6, 16 },     -- seconds before the call comes in
    Cooldown = 45,
    ExemptOnDuty = true,       -- crimes by on-duty units are not reported
    IgnoreZones = {
        { coords = vec3(13.5, -1097.2, 29.8), radius = 25.0 },   -- Ammu-Nation shooting range
    },
}
Tip

OpenClient.CanBeWitnessed(crime) in open/client.lua lets you skip reports, for example for masked players or on gang turf.

Yecoyz Radar

With Yecoyz Radar running, active vehicle warrants are put on the radar's BOLO list and taken off when they end. When an officer's plate reader reads a BOLO plate, that officer and the on-duty members of their unit get an alert with the plate, model, warrant, owner, speed and where it was seen. It is not a dispatch call, so the rest of the department doesn't get it.

Stuck on this step?

Open a ticket in the Discord with what you tried and what you see, and I'll help you get it running.

Ask on Discord
Up nextIntegrationsConnect your jail, billing, licence, photo and inventory scripts to Yecoyz MDT.