getPrison
exports["RiP-Prison"]:getPrison()
This function returns the player prison data
Returned Table
Name | Type | Optional | Explenation |
---|---|---|---|
inPrison | Boolean | No | If player is in jail |
prisonTime | Integer | Yes | Player's jail time |
timeLeft | Integer | Yes | Player's remaining jail time |
Example
local prisonData = exports["RiP-Prison"]:getPrison()
if prisonData.inPrison == true then
print("Player is in jail")
end