r_scripts Docs.
  • Introduction
  • Paid Resources
    • r_notify
      • Installation
      • Configuration
      • API
    • r_trapphone
      • Dependencies
      • Installation
      • Configuration
      • Common Errors
    • r_killfeed
      • Dependencies
      • Installation
      • Configuration
    • r_prison
      • Dependencies
      • Installation
      • Configuration
      • API
        • Client
        • Server
    • r_lottery
      • Dependencies
      • Installation
      • Configuration
    • r_blackmarket
      • Dependencies
      • Installation
      • Configuration
    • r_storageunits
      • Dependencies
      • Installation
      • Configuration
    • r_buddies
      • Dependencies
      • Installation
      • Configuration
  • Free Resources
    • r_bridge
      • Dependencies
      • Compatibilities
      • Installation
      • Configuration
    • r_communityservice
      • Dependencies
      • Installation
      • Configuration
    • r_drugsales
      • Dependencies
      • Installation
      • Configuration
    • r_energydrinks
      • Dependencies
      • Installation
      • Configuration
    • r_moneywash
      • Dependencies
      • Installation
      • Configuration
    • r_whippets
      • Dependencies
      • Installation
      • Configuration
Powered by GitBook
On this page
  • JailPlayer
  • ReleaseInmate
  • IsInmate
  • IsInmateLockdown
  1. Paid Resources
  2. r_prison
  3. API

Client

These are all the client 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)
  • Client must have ACE or police job to jail other players!

  • Returns true or false, indicating whether the target was successfully jailed.


ReleaseInmate

local target = 1 -- ID 1

exports.r_prison:ReleaseInmate(target)
  • Client invoking must have ACE or police job!

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


IsInmate

exports.r_prison:IsInmate()
  • Returns true or false, indicating whether the client is an inmate.


IsInmateLockdown

exports.r_prison:IsInmateLockdown()
  • Returns true or false, indicating whether the client is in lockdown.

Last updated 6 months ago