Skip to main content

jailEdit

exports['RiP-Prison']:jailEdit(source, cell, time, cb)

This function updates the player's jail time and reason

Arguments

NameTypeOptionalExplenation
sourceIntegerNoPlayer's source
cellInteger/StringNoNew or old cell-id/'yard'
timeIntegerNoNew or current remaining time
cbFunctionNoCallback function with boolean

Example

local xPlayer = ESX.GetPlayerFromSource(source)

exports['RiP-Prison']:jailEdit(xPlayer.source, 'yard', 99, function(callback)
if not callback then
print("player couldn't be updated")
end
end)