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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dragon-heart-studios.gitbook.io/dragonheartstudios/scripts/dhs-prisonsim/exports-and-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
