jailGet
exports['RiP-Prison']:jailGet(source)
This function gets a player's jail data
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
source | Integer | No | Player's source |
Returned Table
false|nil
if player is not imprisoned
Name | Type | Explenation |
---|---|---|
identifier | String | Player identifier |
source | Integer | Player source |
name | String | Player name |
cell | String|Integer | Current cell (id or 'yard') |
time | Integer | Player's complete time in minutes |
time_left | Integer | Player's remaining time in seconds |
reason | String | Imprisoning reason |
Example
local xPlayer = ESX.GetPlayerFromSource(source)
local xPrison = exports['RiP-Prison']:jailGet(xPlayer.source)
print(xPrison)