Client
All client exports and events that script provides for developers.
Jail
1. Jailing a player if we got closest player.
Logic path: rcore_prison/modules/api/client/cl-jailPlayer.lua - JailPlayerCustom
local playerId = MyServerId
local jailTime = 5 -- Jail for 5 minutes
exports.rcore_prison:Jail(playerId, jailTime)
2. Jailing a player if we dont have closest player, handled by rcore_prison
Logic path: rcore_prison/modules/api/client/cl-jailPlayer.lua - JailClosestPlayer
-- If you dont have any closest player, you can use this event to jail the closest player to you.
exports.rcore_prison:Jail()Unjail
IsPrisoner
GetPrisonerData
rcore_prison:hudState
Last updated