Dragon Heart Studios
  • Dragon Heart Studios Documentation
  • 🌉DHS-Bridge
  • ⚙️Compatibility
  • 📜Scripts
    • 🎣DHS-Fishing
      • Installation
      • Configuration
      • Integration
    • 🕑DHS-ZWatch
      • Installation
      • Configuration
    • 💰DHS-PettyCrime
      • Installation
      • Configuration
      • Integration
    • 🪓DHS-LumberJack
      • Installation
      • Configuration
      • Integration
    • 🏵️DHS-Peyote
      • Installation
    • 🚗DHS-Boosting
      • Installation
      • Configuration
      • Integration
    • 🦌DHS-Hunting
      • Installation
      • Configuration
      • Integration
    • 👮DHS-PrisonSim
      • Installation
      • Configuration
        • Clothing Config
        • Convoy Config
        • Door Lock Config
        • Entity Sets Config
        • Items Config
        • Jobs Config
        • Locations Config
        • Mugshot Config
        • Object Placer Config
        • Pathfinding Config
        • Peds Config
        • Prison Schedules Config
        • Props Config
        • Solitary Config
      • Integration
      • Exports and Commands
  • 🐝DHS-BrewsAndWines
    • Installation
    • Configuration
      • Beehive Config
      • Clothing Config
      • Delivery Config
      • Mead Config
      • Object Placer Config
      • Peds Config
      • Security Config
      • Wine Config
    • Integration
    • Mead and Wine Brewing
Powered by GitBook
On this page
  • Client Side Exports
  • Send Player To Prison Export (Client)
  • Open Convoy Menu (Client)
  • Server Side Exports
  • Open Convoy Menu (Server)
  • Send Player To Prison Export (Server)
  • Release Prisoner From Prison
  • Get Remaining Prison Time
  • Get Prisoner Security Level
  • Commands
  1. Scripts
  2. DHS-PrisonSim

Exports and Commands

Client Side Exports

Send Player To Prison Export (Client)

Sends Player Directly To Prison

Variables

  • Security Level (min,med,max)

  • timeLeft(integer)

exports['DHS-PrisonSim']:SendPlayerToPrison(secLevel,timeLeft)

Open Convoy Menu (Client)

Opens The Convoy Menu

exports['DHS-PrisonSim']:OpenConvoyMenu()

Server Side Exports

Open Convoy Menu (Server)

Opens The Convoy Menu On The Server ID

Variables

  • source (the players server id that you want this to open on)

exports['DHS-PrisonSim']:OpenConvoyMenu(source)

Send Player To Prison Export (Server)

Sends Player Directly To Prison

Variables

  • Prisoners Server ID (Players server id you want to send to prison)

  • Security Level (min,med,max)

  • timeLeft(integer)

exports['DHS-PrisonSim']:SendPlayerToPrison(prisonerServerID,secLevel,timeLeft)

Release Prisoner From Prison

Releases The Specified Prisoner

Variables

  • prisonerID (prisoner to be released server id)

exports['DHS-PrisonSim']:ReleaseFromPrison(prisonerID)

Get Remaining Prison Time

Returns The Amount of Prison Time Remaining For The Specified Prisoner

Variables

  • prisonerID (prisoner that you want time of)

exports['DHS-PrisonSim']:GetRemainingPrisonTime(prisonerID)

Get Prisoner Security Level

Returns The Security Level of The Prison

Variables

  • prisonerID (prisoner that you want the security level of)

exports['DHS-PrisonSim']:GetPrisonerSecurityLevel(prisonerID)

Commands

/stoplockdown -- Stops Any Current Lockdown
/lockdown -- Triggers a Lockdown That Locks All Doors In The Prison
/resetprisoner [id] -- Resets the specified prisoner and releases them from prison
/doc -- Opens the Department of Corrections Menu
/prison -- Opens the menu to register prisoners for the convoy
/prisonpocket -- Opens your 'prison pocket'
/solitary [id] [time] -- Sends the prisonerID to solitary confinement for specified time
/removeSolitary -- Removes the player from solitary confinement
PreviousIntegrationNextDHS-BrewsAndWines

Last updated 2 months ago

📜
👮