Server
addCall
exports.tk_mdt:addCall(data)
Adds a call to the map view for either police or EMS.
data:
table
title:
string
time?:
number
how long to wait before removing the call (in milliseconds), default 5 minutescallsign?:
string
location?:
string
coords:
vec2
gender?:
string
vehicle?:
table
plate:
string
model:
string
color:
string
weapon?:
string
type:
'police'
'ambulance'
setCallsign
exports.tk_mdt:setCallsign(identifier, callsign, page)
Sets the callsign of an employee in MDT.
identifier: string
callsign: string
page:
'police'
'ambulance'
getCallsign
exports.tk_mdt:getCallsign(identifier, page)
Retrieves the callsign for a player in the MDT.
identifier:
string
page:
string
getPlayerLicenses
exports.tk_mdt:getPlayerLicenses(identifier)
Retrieves player licenses from the MDT.
identifier:
string
getPlayerWarrants
exports.tk_mdt:getPlayerWarrants(identifier, page)
Retrieves player warrants from the MDT.
identifier:
string
page?:
string
doesPlayerHaveWarrant
exports.tk_mdt:doesPlayerHaveWarrant(identifier, page)
Checks if a player has an active warrant.
identifier:
string
page?:
string
setProfileImage
exports.tk_mdt:setProfileImage(identifier, image, page)
Sets the profile image for a player in the MDT.
identifier:
string
image:
string
page:
string
createPoliceReport
exports.tk_mdt:createPoliceReport(data)
Creates a police report.
data:
table
playerId:
int
title:
string
content:
string
hideName?:
boolean
hidePhoneNumber?:
boolean
registerProperty
exports.tk_mdt:registerProperty(data)
Registers a new property in the MDT.
data:
table
id:
number
owner:
string
coords:
vector3
name:
string
notes?:
string
image?:
string
page:
string
registerEvidence
exports.tk_mdt:registerEvidence(data)
Registers evidence in the MDT.
data:
table
playerId:
number
name:
string
image?:
string
notes?:
string
page:
string
removeEvidence
exports.tk_mdt:removeEvidence(id)
Removes evidence from the MDT.
id:
number
registerWeapon
exports.tk_mdt:registerWeapon(data)
Adds a new weapon to MDT.
data:
table
creator:
string
name of creatorname:
string
name of weaponowners?:
array
owner identifiersserial?:
string
notes?:
string
createIncident
exports.tk_mdt:createIncident(incidentData)
Creates a new incident in the MDT.
incidentData:
table
playerId:
number
page:
string
updateProfile
exports.tk_mdt:updateProfile(identifier, page, data)
Updates a player profile in the MDT.
identifier:
string
page:
string
data:
table
identifier:
string
name:
string
dob:
string
phoneNumber:
string
gender:
string
licensePoints?:
number
image?:
string
notes?:
string
fingerprint?:
string
bloodType?:
string
sideBarData?:
table
warrants?:
table[]
incidentTitle:
string
incidentId:
number
expires?:
number
tags?:
string[]
vehicles?:
table[]
name:
string
plate:
string
jobs?:
string[]
properties?:
table[]
name:
string
id:
number
charges?:
string[]
licenses?:
string[]
weapons?:
table[]
name:
string
id:
string
linkedReports?:
table[]
id:
number
title:
string
linkedIncidents?:
table[]
id:
number
title:
string
linkedProfiles?:
table[]
name:
string
reason:
string
id:
number
photos?:
string[]
updateVehicle
exports.tk_mdt:updateVehicle(plate, data, page)
Updates a vehicle in the MDT.
plate:
string
data:
table
name:
string
color:
string
plate:
string
owner:
string
garage?:
string
image?:
string
notes?:
string
sideBarData?:
table
bolos?:
table[]
id:
number
title:
string
expires?:
number
isReport?:
boolean
tags?:
string[]
linkedReports?:
table[]
id:
number
title:
string
linkedIncidents?:
table[]
id:
number
title:
string
page:
string
registerVehicle
exports.tk_mdt:registerVehicle(data)
Adds a new vehicle to MDT, place in your vehicleshop resource to register newly purchased vehicles in MDT.
data:
table
playerId:
number
id of the vehicle ownermodel:
string
number
plate:
string
doesVehicleHaveBOLO
exports.tk_mdt:doesVehicleHaveBOLO(plate, page)
Checks if a vehicle has an active BOLO.
plate:
string
page?:
string
getVehicleBOLOs
exports.tk_mdt:getVehicleBOLOs(plate, page)
Retrieves vehicle BOLOs from the MDT.
plate:
string
page?:
string
getCharges
exports.tk_mdt:getCharges(page)
Retrieves available charges from the MDT.
page:
string
Last updated