# Jail System

## OpenJailLocker

With following export you can open some player jail locker.

```lua
exports['p_policejob']:OpenPlayerLocker()
```

***

## OpenPlayerEvidence

With following export you can open evidence locker assigned for an player.

```lua
exports['p_policejob']:OpenPlayerEvidence()
```

***

## inJail

Check if player is currently in jail.

```lua
LocalPlayer.state.inJail

Player(playerId).state.inJail
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean`

***

## openJailMenu

With following export you can open jail menu and check all active players in jail

```lua
exports['p_policejob']:openJailMenu()
```

***


---

# 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://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/police-job/client-exports/jail-system.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.
