jailEdit
exports['RiP-Prison']:jailEdit(source, cell, time, cb)
This function updates the player's jail time and reason
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
source | Integer | No | Player's source |
cell | Integer/String | No | New or old cell-id/'yard' |
time | Integer | No | New or current remaining time |
cb | Function | No | Callback 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)