Client 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.
IsGptOpen
Use following statebag to check if gpt is currently open.
playerId:
number
Existing player server id
Return:
state:
boolean
OpenGPT
Use following export / event to open gpt.
getLicenses
Get police licenses from config.
Return:
object:
{ [licenseType]: licenseData }
licenseType:
string
licenseData:
table[label: string, access: { [jobName]: jobGrade }]
CheckPlayerLicense
Use following callback to check if player has police license.
licenseName:
string
License name from config
Return:
state:
boolean
GetPlayerLicenses
Use following callback to get player all police licenses.
Return:
licenses:
licenseData
licenseData
id:
number
owner:
string
| player identifiertype:
string
| license namelabel:
string
| license label
Last updated