Admin Jail Script lets authorized staff send players to an admin jail on ESX or QBCore servers. Jailed players are held in a restricted area for a set time and cannot walk away. It also includes character kill (CK) commands that send a character to the morgue.
Features
- Commands to jail a player with reason and time, release a player, check remaining time and list all jailed or CKed players
/ckand/unckcommands for character kills, each can be turned off- Menu with the jail list: update jail time, remove jail or CK, copy the character identifier
- Jail time is stored in the database; optionally it also counts down while the player is offline
- Players who move too far from the jail location are teleported back; selected controls are disabled while jailed
- Optional routing buckets to put jailed players in a separate session
- Optional chat announcements for jails and CKs
- Access by admin groups, by job and grade (jail and CK only, no release) or by ACE permissions
- Configurable jail location, release location, command names and all texts
- Discord webhook logging for jails, releases and time changes
Requirements
- ESX or QBCore
- ox_lib
- oxmysql
Installation
- Import
admin_jail.sqlto create theadmin_jailtable. - Set
Config.FrameworkandConfig.FrameworkExportinconfig.lua, then the groups, jobs and locations. - For ACE permissions set
Config.AcePerm = trueand add theadd_acelines fromreadme.mdto your server.cfg. - Add your webhook in
server/webhooks.luaif you enable logging. - Add
ensure adminplus-adminjailto your server.cfg.