Skip to main content

jailOut

exports['RiP-Prison']:jailOut(source, cb)

This function gets a player out of jail

Arguments

NameTypeOptionalExplenation
sourceIntegerNoPlayer's source
cbFunctionYesCallback function with boolean

Example

local xPlayer = ESX.GetPlayerFromSource(source)

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