jailOut
exports['RiP-Prison']:jailOut(source, cb)
This function gets a player out of jail
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
source | Integer | No | Player's source |
cb | Function | Yes | Callback 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)