prisonUpdate
TriggerClientEvent('RiP-Prison:updateJail', player, time, cell)
This function updates the player's jail time and reason
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
source | Integer | No | Player's source |
time | Integer | Yes | Updated jail time |
cell | Integer/String | Yes | Updated cell id or 'yard' |
Example
local xPlayer = ESX.GetPlayerFromSource(source)
TriggerClientEvent('RiP-Prison:updateJail', xPlayer.source, 6, 1)