Skip to main content

jailGet

exports['RiP-Prison']:jailGet(source)

This function gets a player's jail data

Arguments

NameTypeOptionalExplenation
sourceIntegerNoPlayer's source

Returned Table

false|nil if player is not imprisoned

NameTypeExplenation
identifierStringPlayer identifier
sourceIntegerPlayer source
nameStringPlayer name
cellString|IntegerCurrent cell (id or 'yard')
timeIntegerPlayer's complete time in minutes
time_leftIntegerPlayer's remaining time in seconds
reasonStringImprisoning reason

Example

local xPlayer = ESX.GetPlayerFromSource(source)
local xPrison = exports['RiP-Prison']:jailGet(xPlayer.source)

print(xPrison)