Server Exports
Here you will find the list of usable exports for Police MDT, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.
RegisterWeapon
Use following export to add weapon to registry.
data:
table
model:
string
| weapon model nameowner:
string
| player identifier / citizenidserial:
string
| random serial numbers
GetDangerCode
Use following export to get current danger code.
getLabel?:
boolean
Should return label of code?
Return:
code:
string
onCodeChange
Use this event handler to follow code change.
playerId:
number
Player id who change danger code
data: table
code:
string
| current code namelabel:
string
| current code labelcolor:
string
| current code hex color
getLicenses
Get police licenses from config.
Return:
object:
{ [licenseType]: licenseData }
licenseType:
string
licenseData:
table[label: string, access: { [jobName]: jobGrade }]
CheckPlayerLicense
Use following export to check if player has some police license.
playerId:
number
Existing player server id to check
licenseName:
string
Police license name from config
Return:
state:
boolean
GetPlayerLicenses
Use following export to get all player police licenses.
playerId:
number
Existing player server id to check
Return:
licenses:
licenseData
licenseData
id:
number
owner:
string
| player identifiertype:
string
| license namelabel:
string
| license label
Last updated