Client Exports
IsGptOpen
Use following statebag to check if gpt is currently open.
LocalPlayer.state.GptOpen
Player(playerId).state.GptOpen
playerId:
number
Existing player server id
Return:
state:
boolean
OpenGPT
Use following export / event to open gpt.
exports['piotreq_gpt']:OpenGPT()
getLicenses
Get police licenses from config.
exports['piotreq_gpt']:getLicenses()
Return:
object:
{ [licenseType]: licenseData }
licenseType:
string
licenseData:
table[label: string, access: { [jobName]: jobGrade }]
CheckPlayerLicense
Use following callback to check if player has police license.
lib.callback.await('piotreq_gpt:CheckPlayerLicense', false, licenseName)
licenseName:
string
License name from config
Return:
state:
boolean
GetPlayerLicenses
Use following callback to get player all police licenses.
lib.callback.await('piotreq_gpt:GetPlayerLicenses', false)
Return:
licenses:
licenseData
licenseData
id:
number
owner:
string
| player identifiertype:
string
| license namelabel:
string
| license label
Last updated