> For the complete documentation index, see [llms.txt](https://dragon-heart-studios.gitbook.io/dragonheartstudios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dragon-heart-studios.gitbook.io/dragonheartstudios/scripts/dhs-prisonsim/exports-and-commands.md).

# 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)

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

***

### Open Convoy Menu (Client)

Opens The Convoy Menu

```lua
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)

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

***

### Send Player To Prison Export (Server)

Sends Player Directly To Prison&#x20;

Variables

* Prisoners Server ID (Players server id you want to send to prison)
* Security Level (min,med,max)
* timeLeft(integer)

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

***

### Release Prisoner From Prison

Releases The Specified Prisoner

Variables

* prisonerID (prisoner to be released server id)

```lua
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)

```lua
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)

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

***

## Commands

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