Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop

Admin Jail Script

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
  • /ck and /unck commands 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.sql to create the admin_jail table.
  • Set Config.Framework and Config.FrameworkExport in config.lua, then the groups, jobs and locations.
  • For ACE permissions set Config.AcePerm = true and add the add_ace lines from readme.md to your server.cfg.
  • Add your webhook in server/webhooks.lua if you enable logging.
  • Add ensure adminplus-adminjail to your server.cfg.