Skip to main content

prisonUpdate

TriggerClientEvent('RiP-Prison:updateJail', player, time, cell)

This function updates the player's jail time and reason

Arguments

NameTypeOptionalExplenation
sourceIntegerNoPlayer's source
timeIntegerYesUpdated jail time
cellInteger/StringYesUpdated cell id or 'yard'

Example

local xPlayer = ESX.GetPlayerFromSource(source)

TriggerClientEvent('RiP-Prison:updateJail', xPlayer.source, 6, 1)