Commands & Exports

Player Commands

Command
Description

/mdt

Opens the Police MDT

/closemdt

Closes the MDT

/911 <description>

Creates a civilian dispatch call

F6

Opens MDT (default keybind, configurable)

Admin Commands

Command
Description
Permission

/unjail <id>

Releases a player from jail

Admin

/mdt_seed

Seeds sample MDT records

Admin

Debug Commands (Requires Config.Debug = true)

Command
Description

/mdt_calib_point

Captures map calibration point

/testcall

Creates a test dispatch call

/dumpcctvs

Dumps CCTV registry (server console)

/pfmdt_roster_reset

Resets roster data (server console)

Server Exports

-- Create a dispatch call
exports['pf-policemdt']:CreateDispatchCall({
    title = "Test Call",
    description = "A test dispatch call",
    priority = 2,
    coords = vector3(0, 0, 0),
    locationLabel = "Downtown"
})

-- Create an auto dispatch call
exports['pf-policemdt']:CreateDispatchCallout('Shooting', vector3(0, 0, 0), "Downtown")

-- Get CCTV cameras
local cameras = exports['pf-policemdt']:getCCTVCameras()

Client Exports

Last updated