serverServer

These are all the server side exports you can utilize in other resources.

JailPlayer

local target = 1 -- ID 1
local time = 10 -- 10 minutes
local bail = 10000 -- $10000 (0 or nil for no bail)

exports.r_prison:JailPlayer(target, time, bail)
  • Returns true or false, indicating whether the target was successfully jailed.


ReleaseInmate

local target = 1 -- ID 1

exports.r_prison:ReleaseInmate(target)
  • Returns true or false, indicating whether the target was successfully released.


ReleaseInmateOffline

local charId = "EFR16E1B"

exports.r_prison:ReleaseOfflineInmate(charId)
  • Returns true or false, indicating whether the offline character's sentence was cleared.


EditInmateSentence

  • Returns true or false, indicating whether the target's sentence was changed.


IsInmate

  • Returns true or false, indicating whether the target is an inmate.


GetInmateInfo

  • Returns a table of inmate information if the target is an inmate.


SetLockdown

  • Target must be an inmate.

  • Returns true or false, indicating whether the target was successfully placed in lockdown.


ReleaseLockdown

  • Returns true or false, indicating whether the target was successfully released from lockdown.


IsInmateSolitary

  • Returns true or false, indicating whether the target is in lockdown.


AddCanteen

  • Target must be an inmate.

  • Returns true or false, indicating whether the target's canteen balance has been updated.


RemoveCanteen

  • Target must be an inmate.

  • Returns true or false, indicating whether the target's canteen balance has been updated.


Events

r_prison:playerJailed

Last updated