> For the complete documentation index, see [llms.txt](https://mango-5m.gitbook.io/mango5m-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mango-5m.gitbook.io/mango5m-docs/resources/mango-prison.md).

# Mango Prison

A complete corrections system for FiveM — cinematic intake, CRT prison terminal, real prison jobs, escapes, lockdowns and more. ESX, QBCore and Qbox.

> **Not a jail script — an entire corrections system.** Serious enough for hardcore RP servers, light enough for 10–30 minute sentences.

Mango Prison turns Bolingbroke into a living facility: prisoners arrive on a cinematic bus ride, get booked in with their property secured, receive prison blues, an inmate number and a cell — and serve their time inside a system with a daily timetable, real multi-step prison jobs, a behaviour score that matters, visitation with secure lockers, a medical wing, head counts, scoped ox\_doorlock lockdowns, and multi-stage escapes that alert the police through your dispatch.

Corrections officers run everything from a **retro CRT prison terminal**: inmate database, cell management, lockdown control, PA announcements, timetable, head counts, write-ups, and a full audit log of every action.

* **0.00 ms idle** — no threads, zones or targets unless you are an inmate or on duty
* **Everything survives** disconnects, reconnects and server restarts
* **Nothing hardcoded** — every coordinate, job, door, sound and rule is config
* **ESX Legacy / QBCore / Qbox** through a clean bridge system

## Start here

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>🚀 Getting Started</strong></td><td>SQL, jobs, items, server.cfg — a working prison in fifteen minutes.</td><td><a href="/mango5m-docs/resources/mango-prison/getting-started.md">Getting Started</a></td></tr><tr><td><strong>⚙️ Configuration</strong></td><td>Nineteen focused config files: locations, doors, jobs, the kitchen, cameras, escapes, and more.</td><td><a href="/mango5m-docs/resources/mango-prison/configuration.md">Configuration</a></td></tr><tr><td><strong>✨ Features</strong></td><td>The prison terminal, intake, the armoury, officer duty, behaviour, head counts, police dispatch.</td><td><a href="/mango5m-docs/resources/mango-prison/features.md">Features</a></td></tr><tr><td><strong>🧩 Developer Guide</strong></td><td>Jailing from your police job, every export and event, and the bridge system.</td><td><a href="/mango5m-docs/resources/mango-prison/developer-guide.md">Developer Guide</a></td></tr><tr><td><strong>📖 Reference</strong></td><td>Admin commands and troubleshooting.</td><td><a href="/mango5m-docs/resources/mango-prison/reference.md">Reference</a></td></tr></tbody></table>

## Highlights

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>🚌 Cinematic intake</strong></td><td>Skippable prison-bus ride with camera work, then booking, prison blues and a cell assignment.</td><td><a href="/mango5m-docs/resources/mango-prison/features/intake-and-property.md">Intake &amp; Property</a></td></tr><tr><td><strong>🖥️ CRT prison terminal</strong></td><td>Green-phosphor vintage terminal in a retro all-in-one case — ten pages of corrections tooling.</td><td><a href="/mango5m-docs/resources/mango-prison/features/the-prison-terminal.md">The Prison Terminal</a></td></tr><tr><td><strong>👨‍🍳 Real prison jobs</strong></td><td>Laundry, woodwork and metalwork — every task its own minigame. Work badly, earn less.</td><td><a href="/mango5m-docs/resources/mango-prison/configuration/prison-jobs.md">Prison Jobs</a></td></tr><tr><td><strong>🍳 A kitchen that feeds the prison</strong></td><td>Pick tonight's recipe, cook it, serve it — and the whole prison hears what you plated.</td><td><a href="/mango5m-docs/resources/mango-prison/configuration/the-kitchen.md">The Kitchen</a></td></tr><tr><td><strong>📹 CCTV that can be shot out</strong></td><td>Place cameras in game, watch the feeds from the terminal — and lose one for ten minutes when a prisoner takes it out.</td><td><a href="/mango5m-docs/resources/mango-prison/configuration/cctv-cameras.md">CCTV Cameras</a></td></tr><tr><td><strong>⭐ Behaviour &#x26; trusty</strong></td><td>Conduct score drives job rewards and unlocks trusty perks; write-ups and escapes tank it.</td><td><a href="/mango5m-docs/resources/mango-prison/features/behaviour-and-trusty.md">Behaviour &amp; Trusty</a></td></tr><tr><td><strong>🔒 Scoped lockdowns</strong></td><td>Cell, block, yard, medical, visitation or the whole prison — with return-to-cells and auto-expiry.</td><td><a href="/mango5m-docs/resources/mango-prison/configuration/doors-and-lockdowns.md">Doors &amp; Lockdowns</a></td></tr><tr><td><strong>🏃 Multi-stage escapes</strong></td><td>Smuggled tools, staged breakout, escalating alert chances — and a police dispatch when they clear the fence.</td><td><a href="/mango5m-docs/resources/mango-prison/configuration/escapes.md">Escapes</a></td></tr></tbody></table>

{% hint style="info" %}
**New install?** Start at [Installation](/mango5m-docs/resources/mango-prison/getting-started/installation.md). Pair it with [Mango MDT](/mango5m-docs/resources/mango-mdt.md) — jailing from the MDT works out of the box, and escapes create real dispatch calls. **Something not working?** See [Troubleshooting](/mango5m-docs/resources/mango-prison/reference/troubleshooting.md) or [I Need Support](/mango5m-docs/i-need-support.md).
{% endhint %}
