Jail System
JailPlayer
Use following export to jail some player.
exports['p_policejob']:JailPlayer(officerId, data)officerId:
numberExisting officer id
data:
tableplayer:
numberjail:
numberfine:
numberreason:
stringoffenses?:
{ [string]: offenseData }
offenseData
fine:
numberlabel:
stringjail:
numbercount:
number
Return:
state:
booleanornil
Offenses are only required to display it properly in our Police MDT.
JailPlayers
Use following export to jail few players at the same time.
officerId:
numberExisting officer id
data:
tableplayers:
{ [index]: { identifier: string } }jail:
numberfine:
numberreason:
stringoffenses?:
{ [string]: offenseData }
offenseData
fine:
numberlabel:
stringjail:
numbercount:
number
Return:
state:
booleanornil
Offenses are only required to display it properly in our Police MDT.
Jail Command
Use following command to jail player [required permissions in config]
targetId:
numberExisting player server id
months:
numberAmount of months in jail
Unjail Player
Use following export to unjail player.
playerId:
number or nilExisting player server id
targetId:
numberExisting player server id in jail
Unjail Command
Use following command to unjail player [required permissions in config].
targetId:
numberExisting player server id in jail
Shorten Jail
Use following export to shorten player jail.
playerId:
number or nilExisting player server id
targetId:
numberExisting player server id in jail
months:
numberAmount of months to shorten
Shorten Jail Command
Use following command to shorten jail player [required permissions in config].
targetId:
numberExisting player server id in jail
months:
numberAmount of months to shorten
inJail
Check if player is currently in jail.
playerId:
numberExisting player server id
Return:
state:
boolean
getPlayerJudgment
Check player remaining amount of months in jail.
playerId:
numberExisting player server id
Return:
months:
numberor0
Last updated