Server
addCall
exports.tk_mdt:addCall(data)Adds a call to the map view for either police or EMS.
data:
tabletitle:
stringtime?:
numberhow long to wait before removing the call (in milliseconds), default 5 minutescallsign?:
stringlocation?:
stringcoords:
vec2gender?:
stringvehicle?:
tableplate:
stringmodel:
stringcolor:
string
weapon?:
stringtype:
'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:
stringpage:
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:
stringpage?:
string
doesPlayerHaveWarrant
exports.tk_mdt:doesPlayerHaveWarrant(identifier, page)Checks if a player has an active warrant.
identifier:
stringpage?:
string
setProfileImage
exports.tk_mdt:setProfileImage(identifier, image, page)Sets the profile image for a player in the MDT.
identifier:
stringimage:
stringpage:
string
createPoliceReport
exports.tk_mdt:createPoliceReport(data)Creates a police report.
data:
tableplayerId:
inttitle:
stringcontent:
stringhideName?:
booleanhidePhoneNumber?:
boolean
registerProperty
exports.tk_mdt:registerProperty(data)Registers a new property in the MDT.
data:
tableid:
numberowner:
stringcoords:
vector3name:
stringnotes?:
stringimage?:
stringpage:
string
registerEvidence
exports.tk_mdt:registerEvidence(data)Registers evidence in the MDT.
data:
tableplayerId:
numbername:
stringimage?:
stringnotes?:
stringpage:
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:
tablecreator:
stringname of creatorname:
stringname of weaponowners?:
arrayowner identifiersserial?:
stringnotes?:
string
createIncident
exports.tk_mdt:createIncident(incidentData)Creates a new incident in the MDT.
incidentData:
tableplayerId:
numberpage:
string
updateProfile
exports.tk_mdt:updateProfile(identifier, page, data)Updates a player profile in the MDT.
identifier:
stringpage:
stringdata:
tableidentifier:
stringname:
stringdob:
stringphoneNumber:
stringgender:
stringlicensePoints?:
numberimage?:
stringnotes?:
stringfingerprint?:
stringbloodType?:
stringsideBarData?:
tablewarrants?:
table[]incidentTitle:
stringincidentId:
numberexpires?:
number
tags?:
string[]vehicles?:
table[]name:
stringplate:
string
jobs?:
string[]properties?:
table[]name:
stringid:
number
charges?:
string[]licenses?:
string[]weapons?:
table[]name:
stringid:
string
linkedReports?:
table[]id:
numbertitle:
string
linkedIncidents?:
table[]id:
numbertitle:
string
linkedProfiles?:
table[]name:
stringreason:
stringid:
number
photos?:
string[]
updateVehicle
exports.tk_mdt:updateVehicle(plate, data, page)Updates a vehicle in the MDT.
plate:
stringdata:
tablename:
stringcolor:
stringplate:
stringowner:
stringgarage?:
stringimage?:
stringnotes?:
stringsideBarData?:
tablebolos?:
table[]id:
numbertitle:
stringexpires?:
numberisReport?:
boolean
tags?:
string[]linkedReports?:
table[]id:
numbertitle:
string
linkedIncidents?:
table[]id:
numbertitle:
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:
tableplayerId:
numberid of the vehicle ownermodel:
stringnumberplate:
string
doesVehicleHaveBOLO
exports.tk_mdt:doesVehicleHaveBOLO(plate, page)Checks if a vehicle has an active BOLO.
plate:
stringpage?:
string
getVehicleBOLOs
exports.tk_mdt:getVehicleBOLOs(plate, page)Retrieves vehicle BOLOs from the MDT.
plate:
stringpage?:
string
getCharges
exports.tk_mdt:getCharges(page)Retrieves available charges from the MDT.
page:
string
Last updated