Client
toggleUI
exports.tk_dispatch:toggleUI(page)Toggles a UI page
page: 'callManager' 'sidebar' 'map'
getPlayerData
exports.tk_dispatch:getPlayerData()Returns a table of data that can be used for example for call message
return:
data:
tablegender:
stringlocation:
stringdirection:
stringvehicle?:
tablewill only return if player is in a vehiclemodel:
stringcolor:
stringplate:
string
weapon?:
stringwill only return if player is holding a weapon
addCall
Adds a call with given data
data:
tabletitle:
stringcode?:
stringpriority?:
stringcoords:
vec3coordsOffset?:
numberwill randomise call coords by given amountimage?:
stringimage linktakePhoto?:
booleanshould the call data include a photo of player screenmessage?:
stringshowLocation?:
booleanshowDirection?:
booleanshowGender?:
booleanshowVehicle?:
booleanplatePercentage?:
numberthe percentage of plate characters to show (0-100), missing characters will be replaced with a "?"showWeapon?:
booleanshowPerson?:
booleanshowNumber?:
booleanremoveTime?:
numbertime in milliseconds to remove callshowTime?:
numbertime in milliseconds the call will show as a notificationcolor?:
stringcolor for notification left side (https://yeun.github.io/open-color/)flash?:
booleanplaySound?:
booleanplaySoundAll?:
booleanwill play a sound that all players can hearjobs:
string[]blip?:
tablesprite:
numberscale:
numbercolor:
numberflash?:
booleandisplay?:
numbershortRange?:
booleanradius?:
number
Examples
Last updated