Skip to the content
Docs

Jail

On this page3

The panel has its own admin jail: you set where it is and how far a jailed player may walk. Staff can also send a player to the police prison of your own prison script, when a supported one is running.

Admin jail

The admin jail is built into the panel. It works on every framework and needs no other resource. The key is in config.lua.

KeyDefaultAllowedWhat it changes in game
Config.AdminJailA table with the two fields belowA table · falsefalse switches the admin jail off.
coordsvec4(1691.5, 2565.9, 45.56, 180.0) (Bolingbroke prison yard)A position vec4(x, y, z, heading)The spot a jailed player is put on. It is the middle of the area they may move in.
radius40.0Metres, 5.0 or moreHow far from the spot they may walk. Farther out, they are put back on the spot.
lua
Config.AdminJail = {
    coords = vec4(1691.5, 2565.9, 45.56, 180.0),
    radius = 40.0,
}

What a jailed player gets

RuleIn game
Held around the spotA player who leaves the radius or gets into a vehicle is put back on the spot and reads: "You are in admin jail. Stay here until your time is up."
No weapons, no fighting, no vehiclesShooting, punching and getting into a vehicle are switched off.
Time on screenA text at the top of the screen, for example "Admin jail: 12 min left".
The time only runs while they playLeaving the server stops the clock. After a rejoin or a restart they are back in the jail.
When the time is upThey are put back where they stood before and read: "You were released from jail."
Longest time10080 minutes (one week).

Pick another place

  1. Stand on the new spot in game.
  2. Open the quick menu with /adminmenu.
  3. Open the Tools tab and press Copy my position.
  4. Open config.lua and paste the text as coords.
  5. Set radius to fit the place: a jailed player may walk that far from the spot.
  6. Restart the resource.
  • vector4 (what the menu copies) and vec4 are the same thing.
  • The radius counts in every direction, also up and down.
  • A radius under 5.0 counts as 5.0.

Switching the admin jail off

lua
Config.AdminJail = false
Your serverWhat staff see
No prison scriptThe Jail button is gone.
A supported prison scriptThe Jail button stays for the police prison. Choosing Admin jail answers: "The admin jail is switched off on this server."

Police prison

There is no config key for it. In the Jail window staff choose Which jail: Admin jail or Police prison. The second choice is only there when a supported prison script is running.

Prison scriptLevel
qb-prisonSupported
xt-prisonSupported
Any other prison scriptStub / snippet: your developer adds it in the open file bridge/jail.lua

The panel hands the player to the prison script, with the minutes staff typed. It takes the same steps your police job takes for its own jail command.

Admin jailPolice prison
NeedsNothingA supported prison script
Who keeps the timeThe panelThe prison script
Place and rulesConfig.AdminJailThe prison script
Jail a playerThe player must be on the serverThe player must be on the server
Release a playerWorks while they are offline tooThe player must be on the server
What staff readWhy
"This server has no police prison connected."No supported prison script is running.
"The prison script did not accept that."The prison script did not take or release the player.

The panel looks for the prison script each time it opens. Start the prison script, then open the panel again.

Permission

Both jails, and the release, need Jail / release (player.jail). The default ranks God, Admin and Moderator have it. See Super-Admin & Ranks.

Related: Jail · Prison Scripts · Bridge Files · Sits.