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 minutes

    • callsign?: string

    • location?: string

    • coords: vec2

    • gender?: string

    • vehicle?: table

      • plate: string

      • model: string

      • color: string

    • weapon?: string

    • type: 'police' 'ambulance'

registerWeapon

exports.tk_mdt:registerWeapon(data)

Adds a new weapon to MDT

  • data: table

    • creator: string name of creator

    • name: string name of weapon

    • owners?: array owner identifiers

    • serial?: string

    • notes?: 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 owner

    • model: string number

    • plate: string

setCallsign

exports.tk_mdt:setCallsign(identifier, callsign, page)

Sets the callsign of an employee in MDT

  • identifier: string

  • callsign: string

  • page: 'police' 'ambulance'

createPoliceReport

exports.tk_mdt:createPoliceReport(data)

Creates a police report

  • data: table

    • playerId: int

    • title: string

    • content: string

    • hideName?: boolean

    • hidePhoneNumber?: boolean

Last updated