🔄Exports
Client Exports
OpenMDT(initialPage?) -> boolean
OpenMDT(initialPage?) -> booleanlocal didOpen = exports['m-Mdt']:OpenMDT('dispatch')
if not didOpen then
print('OpenMDT failed')
endCloseMDT() -> boolean
CloseMDT() -> booleanlocal didClose = exports['m-Mdt']:CloseMDT()
if not didClose then
print('CloseMDT failed')
endToggleMDT(initialPage?) -> boolean
ToggleMDT(initialPage?) -> booleanIsOpen() -> boolean
IsOpen() -> booleanOpenDispatchHUD() -> boolean
OpenDispatchHUD() -> booleanCloseDispatchHUD() -> boolean
CloseDispatchHUD() -> booleanToggleDispatchHUD() -> boolean
ToggleDispatchHUD() -> booleanIsDispatchHUDOpen() -> boolean
IsDispatchHUDOpen() -> booleanToggleBodycam() -> boolean
ToggleBodycam() -> booleanServer Exports
Police / Officers
IsPolice(source) -> boolean, number
IsPolice(source) -> boolean, numberGetOfficerBySource(source) -> table|nil
GetOfficerBySource(source) -> table|nilGetOfficerByIdentifier(identifier) -> table|nil
GetOfficerByIdentifier(identifier) -> table|nilDispatch
CreateDispatchCall(data) -> table
CreateDispatchCall(data) -> tableGetDispatchCall(callNumber) -> table|nil
GetDispatchCall(callNumber) -> table|nilGetActiveDispatchCalls() -> table[]
GetActiveDispatchCalls() -> table[]Notifications
NotifyPolice(payload) -> boolean
NotifyPolice(payload) -> booleanWeapons
GetWeapons(limit?) -> table[]
GetWeapons(limit?) -> table[]GetWeaponBySerial(serialNumber) -> table|nil
GetWeaponBySerial(serialNumber) -> table|nilRegisterWeapon(data) -> table
RegisterWeapon(data) -> tableVehicles
GetVehicles(limit?) -> table[]
GetVehicles(limit?) -> table[]GetVehicleByPlate(plate) -> table|nil
GetVehicleByPlate(plate) -> table|nilUpdateVehicleStatus(plate, status) -> table
UpdateVehicleStatus(plate, status) -> tableBOLO
GetBOLOs(limit?, onlyActive?) -> table[]
GetBOLOs(limit?, onlyActive?) -> table[]GetBOLOById(id) -> table|nil
GetBOLOById(id) -> table|nilCreateBOLO(data) -> table
CreateBOLO(data) -> tableWarrants
GetWarrants(limit?, onlyActive?) -> table[]
GetWarrants(limit?, onlyActive?) -> table[]GetWarrantById(id) -> table|nil
GetWarrantById(id) -> table|nilCreateWarrant(data) -> table
CreateWarrant(data) -> tableIncidents
GetIncidents(limit?) -> table[]
GetIncidents(limit?) -> table[]GetIncidentById(id) -> table|nil
GetIncidentById(id) -> table|nilCreateIncident(data) -> table
CreateIncident(data) -> tableLast updated