> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_police/integrations/prison.md).

# Prison

The prison bridge is used to send arrested players to a prison resource.

## 🔎 Auto Detection

```lua
Config.Prison = AUTO_DETECT
```

Auto-detection priority (first match wins): `PICKLE` → `RCORE` → `R_PRISON` → `QALLE` → `QB_PRISON` → `XT`.

Override with the matching constant if detection picks the wrong one:

| Constant           | Resource                                                       |
| ------------------ | -------------------------------------------------------------- |
| `Prison.PICKLE`    | `pickle_prisons`                                               |
| `Prison.RCORE`     | `rcore_prison` ([Buy](https://store.rcore.cz/package/5341769)) |
| `Prison.R_PRISON`  | `r_prison`                                                     |
| `Prison.QALLE`     | `esx-qalle-jail`                                               |
| `Prison.QB_PRISON` | `qb-prison`                                                    |
| `Prison.XT`        | `xt-prison`                                                    |
| `Prison.ESX_COMS`  | `esx_communityservice`                                         |
| `Prison.NONE`      | No prison resource found - you will need to integrate it.      |
