Jail
How officers send someone to jail, prison work, and release.
What it is
A jailed player is put in a cell under Bolingbroke Penitentiary until their time is up. The server counts the time, and it keeps counting if they log out and come back.
How it works
- An officer jails a player who stands within 10 metres: from an MDT incident (Jail), with
/jail <id> <minutes> <reason>, or from/jailmenu→ Jail closest person. Officers cannot jail themselves. - A short mugshot scene plays. The prisoner gets prison clothes and is put in the cell. Everyone sees a chat line with the reason.
- Every minute the prisoner sees how many minutes are left. The longest sentence is 120 minutes.
- Prison work: doors move the prisoner to a work room. Take a package, pack it and deliver it to get $13–21 (once a minute). It does not make the time shorter.
- Release: when the time is up, the prisoner is moved outside the prison in their own clothes. An officer can
free someone early with
/unjail <id>or/jailmenu→ Unjail person (this also lists offline prisoners).
Keys & commands
| Key / command | What it does | Who |
|---|---|---|
/jail <id> <minutes> <reason> | Jail a nearby player | Police |
/unjail <id> | Free a player early | Police |
/jailmenu | Jail the closest person, or free anyone with jail time | Police |
| E in jail | Doors, take and deliver packages | Prisoners |
Config options
File: [esx]/[jobs]/[police]/mvx_police/modules/jail/config.lua
| Option | What it changes | Example |
|---|---|---|
Config.MaxJailTime | Longest sentence in minutes | 120 |
Config.JailReach | How close the prisoner must be | 10.0 |
Config.WorkReward | Cash per prison package | { min = 13, max = 21 } |
Config.WorkCooldown | Seconds between paid packages | 60 |
Config.JailPositions / Config.Teleports | Cell and release spot | Bolingbroke |
Restart mvx_police when nobody is in jail: after a restart, prisoners are only picked up again when they reconnect.
Admin Quick Test
Setup
- Make yourself an officer:
/setjob me police 0. - You need a second player (a friend or a second client). The server does not let an officer jail themselves.
Stand within 10 metres of them, for example at Mission Row:
/tp 425.10 -979.50 30.70.
Jail
- Type
/jail <their id> 2 Test. The screen fades and a mugshot scene plays. They get prison clothes and are put in the cell at 1799.83, 2489.14, -119.03. You see "... jailed for 2 minutes"; the chat shows the reason from Judge. - The prisoner sees the minutes left every minute.
Prison work
- The prisoner uses the doors (E Open door) to reach the work room (992.52, -3097.84, -39.00). They take a package (E), pack it (about 72 seconds) and leave it at the drop point (1027.23, -3101.42, -39.00, E Leave package). They get $13–21 cash. Only once a minute; the sentence does not get shorter.
Release
- When the time is up (checked every 15 seconds), the prisoner is moved outside to 1845.60, 2585.80, 45.67 in their own clothes: "You are released".
- Jail them again for 10 minutes, then type
/unjail <their id>: they are released at once. - Type
/jailmenu→ Unjail person: the list shows everyone with jail time, also offline players. - Reconnect test: jail them, let them leave and join again. About 25 seconds after joining they are back in the cell with the time that was left.
If it doesn't work: "The prisoner has to be next to you" means more than 10 metres. "This ID is not online" also shows when you try your own id. Sentences longer than 120 minutes are cut to 120.