TK Scripts
  • Welcome
  • Common questions
  • Common problems
  • esx_tk_mechanicjob
    • Common questions & problems
  • tk_bosstablet
    • Common questions & problems
  • tk_jail
    • Common questions & problems
    • Exports
      • Client
      • Server
  • tk_laptop
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_mdt
    • Fivemanage setup (for images)
    • Common questions & problems
    • Config
    • Exports
      • Client
      • Server
  • tk_dispatch
    • Setup
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_housing
    • Setup
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_drugs
    • Common Questions & Problems
    • Config
  • tk_zipline
    • Config
  • tk_houserobbery
    • Config
  • tk_evidence
    • Config
    • Exports
      • Client
      • Server
  • tk_policejob
    • Config
    • Exports
      • Client
      • Server
Powered by GitBook
On this page
  • addCall
  • registerWeapon
  • registerVehicle
  • setCallsign
  • createPoliceReport
  1. tk_mdt
  2. Exports

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

PreviousClientNexttk_dispatch

Last updated 7 months ago