{"id":199870,"date":"2025-10-10T08:30:24","date_gmt":"2025-10-10T06:30:24","guid":{"rendered":"https:\/\/fivemx.com\/?post_type=product&#038;p=199870"},"modified":"2025-12-24T07:30:00","modified_gmt":"2025-12-24T06:30:00","slug":"script-de-prison-dadministrateur","status":"publish","type":"product","link":"https:\/\/fivemx.com\/fr\/admin-jail-script\/","title":{"rendered":"Script de prison d&#039;administration"},"content":{"rendered":"<p><iframe title=\"[ESX\/QB] Advanced Admin Jail V2 + CK Characters - FiveM Script\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/4Q8vKkoh-Uo?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2>Config file<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">-- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 --                                                                                                                                  \r\n\r\nConfig = {}\r\n\r\nConfig.Framework = 1 -- (ESX == 1), (QB == 2)\r\nConfig.FrameworkExport = 'es_extended' -- (ESX == 'es_extended'), (QB == 'qb-core')\r\n\r\nConfig.releaseLocation = vector3(187.1704, -919.8855, 29.8055-1) -- where do you want the player to be teleported when out of adminjail\/ck?\r\n\r\nConfig.chatMessages = true -- do you want the adminjail to notify other players in chat when adminjailed etc?\r\nConfig.reduceTimeOffline = true -- set to true if you want admin jail time to decrease even when the player is offline.\r\nConfig.routingBucket = true -- do you want to enable routing buckets? (this will put players into a random session so they are likely not to be with another player, more so for trolls)\r\n\r\nConfig.AdminJailCommand = 'adminjail'\r\nConfig.AdminJailCommandRelease = 'unadminjail'\r\nConfig.AdminJailTime = 'adminjailtime'\r\nConfig.AdminJailList = 'adminjaillist'\r\n\r\nConfig.DistanceCheck = 20.0 -- how far they can go away from Config.jailLocation before they're teleported back.\r\nConfig.DistanceMessage = 'You were teleported back to admin-jail for trying to get away.'\r\n\r\nConfig.DisabledControls = {24, 257, 25, 263, 45, 22, 44, 37, 23, 288, 289, 170, 167, 73, 59, 71, 72, 36, 47, 264, 257, 140, 141, 142, 143, 75} -- 245 for T keybind (chat)\r\n\r\nConfig.ckToggle = true -- toggle CK\r\nConfig.ckCommand = 'ck' -- cmd to CK \r\n\r\nConfig.unckToggle = true -- toggle unCK\r\nConfig.unckCommand = 'unck' -- cmd to unCK\r\n\r\nConfig.ckAnnounce = true -- do you want to alert in that when someone is CKed?\r\n\r\n-- Chat Messages IF ENABLED. -- (mainly for changing the RGBA colors &amp; modifications -- don't touch if you don't know what you're doing)\r\nConfig.Admin_Jail_Updated = '&lt;div style=\"color: rgba(255, 99, 71, 1); width: fit-content; max-width: 125%; word-break: break-word; \"&gt; {0} &lt;\/div&gt;'\r\nConfig.Admin_Jail_Sent = '&lt;div style=\"color: rgba(255, 99, 71, 1); width: fit-content; max-width: 125%; word-break: break-word; \"&gt; {0} &lt;\/div&gt;'\r\nConfig.CK_Announce_Chat = '&lt;div style=\"width: fit-content; max-width: 125%; word-break: break-word; \"&gt;&lt;span style=\"color: rgba(255, 99, 71, 1);\"&gt;{0}&lt;\/span&gt; &lt;span style=\"color: rgba(255, 255, 255, 1);\"&gt;{1}&lt;\/span&gt;&lt;\/div&gt;'\r\n--\r\n\r\nConfig.AcePerm = false -- check readme\r\n\r\nConfig.AdminGroups = {\r\n    'god',\r\n    'admin',\r\n    'moderator',\r\n    'leadadmin',\r\n    'developer',\r\n    'management',\r\n    'owner'\r\n}\r\n\r\n-- to run \/ck &amp; \/adminjail -- (don't have access to \/unck &amp; \/adminjailrelease to avoid abuse from the job)\r\nConfig.Jobs = {\r\n    { name = 'police', grade = 6 },\r\n    { name = 'ambulance', grade = 6 },\r\n}\r\n\r\nConfig.jailLocation = {\r\n    x = 3557.8950, -- x Coordinate\r\n    y = 3659.7058, -- y Coordinate\r\n    z = 28.1219-1  -- z Coordinate\r\n}\r\n\r\nConfig.EnableWebhook = false -- (if true add webhook to server side) adminplus-adminjail\/server\/webhooks.lua\r\n\r\nConfig.Strings = {\r\n    adminjail = 'send an individual to Admin Jail',\r\n    adminjailrelease = 'release an individual from Admin Jail',\r\n    adminjailchecktime = 'check the time of a person in Admin Jail',\r\n    adminjailtimecommand = 'Check remaining jail time',\r\n    insufficientpermissions = 'insufficient permission to use this command',\r\n    invalid_player_id = 'invalid Player ID',\r\n    invalid_reason = 'invalid reason',\r\n    invalid_time = 'invalid time',\r\n    player_not_found = 'player not found',\r\n    usage_admin_release = 'Usage: \/adminjailrelease [playerId]',\r\n    usage_admin_jail = 'Usage: \/adminjail [playerId] [reason] [time]',\r\n    usage_admin_ck = 'Usage: \/ck [playerId]',\r\n    admin_jail_fail_remove = 'Failed to remove Admin Jail record from the database',\r\n    admin_jail_fail_insert = 'Failed to insert admin jail record into the database',\r\n    admin_jail_fail_update = 'Failed to update admin jail record in the database',\r\n    admin_jail_released = 'You have been released from Admin Jail!',\r\n    admin_jail_sent = 'You have been sent to Admin Jail!',\r\n    time = ' \\nTime: ',\r\n    admin_jail_updated = 'Your Admin Jail time has been updated!  \\nTime Updated: ',\r\n    remaining_jail_time = 'Your remaining jail time:',\r\n    remaining_jail_time_other = 'remaining jail time:',\r\n    minutes = ' minute(s) ',\r\n    seconds = ' seconds',\r\n    player = ' player ',\r\n    reason = '  \\nReason: ',\r\n    staff = '  \\nStaff: ',\r\n    active_admin_jail = 'You have an active Admin Jail sentence.',\r\n    no_active_admin_jail = 'You do not have an active jail sentence.',\r\n    no_active_admin_jail_other = 'does not have an active jail sentence.',\r\n    chat_message_sent_to_jail = '%s has sent %s to Admin Jail for %s minute(s). Reason: %s',\r\n    chat_message_has_updated = '%s has updated %s Admin Jail time to %s minute(s). Reason: %s',\r\n    --\r\n    ck = 'send an individiual to be CKed',\r\n    ckrelease = 'release an individual from being CKed',\r\n    usage_ck_admin_jail = 'Usage: \/ck [playerId]',\r\n    chat_ck_message_sent_to_jail = '%s has has been sent to the morgue. Reason: %s',\r\n    chat_ck_message_has_updated = '%s has updated %s Admin Jail time to %s minute(s). Reason: %s',\r\n    admin_ck_fail_update = 'User is already in the morgue.',\r\n    admin_ck_fail_remove = 'Failed to remove CK record from the database',\r\n    admin_ck_sent = 'You have been sent to the Morgue!',\r\n    admin_ck_fail_insert = 'Failed to insert CK record into the database',\r\n    usage_ck_release = 'Usage: \/unck [playerId]',\r\n    admin_ck_released = 'You have been released from the Morgue!',\r\n    -- client  side menu notifications\r\n    admin_menu_name = 'Admin Jail Features',\r\n    admin_menu_list = 'Admin Jail List ',\r\n    admin_menu_reason = 'Reason: ',\r\n    admin_menu_jail_time = '\\nJail Time: ',\r\n    admin_menu_update_user_time = 'Update admin-jail time',\r\n    admin_menu_update_user_time_desc = 'Update the admin-jail time of this individual.',\r\n    admin_menu_update_input_user_time = 'Update admin-jail time for \"',\r\n    admin_menu_update_input_user_time_desc = 'How many minutes do you want this character to be admin-jailed for? ',\r\n    admin_menu_remove_admin_jail_title = 'Remove admin-jail',\r\n    admin_menu_remove_admin_jail_desc = 'Remove the admin-jail of this individual.',\r\n    admin_menu_remove_ck_title = 'Un Character Kill',\r\n    admin_menu_remove_ck_desc = 'Remove the character kill of this individual.',\r\n    admin_menu_remove_copy_title = 'Copy Identifier',\r\n    admin_menu_remove_copy_desc = 'Copy character\\'s identifier.',\r\n    admin_menu_remove_back_title = 'Back',\r\n    admin_menu_remove_back_desc = 'Go back to admin-jail history.',\r\n    admin_menu_clipboard = 'Copied identifier to clipboard  \\n',\r\n    -- server side menu notifications\r\n    admin_menu_remove_admin_jail = 'Character Admin-Jail removed from database: ',\r\n    admin_menu_remove_admin_jail_online = 'Character is in the city and was successfully removed from admin-jail.',\r\n    admin_menu_remove_admin_jail_offline = 'Character is not in the city but was successfully removed from admin-jail.',\r\n    admin_menu_fail_remove_license = 'Failed to remove license from database: ',\r\n    admin_menu_ck_remove = 'Character-Kill removed from database: ',\r\n    admin_menu_remove_ck_online = 'Character is in the city and was successfully un-cked.',\r\n    admin_menu_remove_ck_offline = 'Character is not in the city but was successfully un-cked.',\r\n    admin_menu_update_time = 'Updated admin jail time for: ',\r\n    admin_menu_fail_update_time = 'Failed to update admin jail time for: ',\r\n}\r\n\r\nConfig.Debug = false\r\n\r\n-- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 --<\/pre>\n<h2>Installation<\/h2>\n<div>\n<div>Run the SQL<\/div>\n<div>view Config to configure your framework.<\/div>\n<div>&#8212;<\/div>\n<div>ACE PERMISSIONS:<\/div>\n<div>&gt; (use whichever, add to your <a class=\"wpil_keyword_link\" title=\"FiveM server.cfg \u2013 Full Guide\" href=\"https:\/\/fivemx.com\/fivem-server-cfg\/\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1743\">server.cfg<\/a> ) &lt;<\/div>\n<div>if you want to allow specific group with perms use first one<\/div>\n<div>if you&#8217;re on esx &amp; want to allow specific identifiers use the 2nd one<\/div>\n<div>if you&#8217;re on esx &amp; want to allow specific identifiers use the 3rd one<\/div>\n<div>&#8212; group ace permissions<\/div>\n<div>add_ace group.mod adminplus.command.adminjail allow<\/div>\n<div>add_ace group.mod adminplus.command.adminjailrelease allow<\/div>\n<div>add_ace group.mod adminplus.command.adminjaillist allow<\/div>\n<div>&#8212; ESX ace perm specific identifiers<\/div>\n<div>add_ace identifier.steam:steamHEX adminplus.command.adminjail allow<\/div>\n<div>add_ace identifier.steam:steamHEX adminplus.command.adminjailrelease allow<\/div>\n<div>add_ace identifier.steam:steamHEX adminplus.command.adminjaillist allow<\/div>\n<div>&#8212; QBcore ace perm specific identifiers<\/div>\n<div>add_ace identifier.license:identifier adminplus.command.adminjail allow<\/div>\n<div>add_ace identifier.license:identifier adminplus.command.adminjailrelease allow<\/div>\n<div>add_ace identifier.license:identifier adminplus.command.adminjaillist allow<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ce script FiveM permet aux groupes de personnel autoris\u00e9s <strong>emprisonner de force les joueurs<\/strong> dans une zone restreinte o\u00f9 ils <strong>ne peut pas bouger ou s&#039;\u00e9chapper<\/strong> pour une dur\u00e9e d\u00e9termin\u00e9e.<\/p>\n<p>C&#039;est id\u00e9al pour <strong>serveurs RP semi-s\u00e9rieux ou s\u00e9rieux<\/strong>, permettant aux administrateurs d&#039;envoyer les personnages d\u00e9c\u00e9d\u00e9s \u00e0 un <em>Prison administrative<\/em>\u2014les faire <strong>inutilisable<\/strong> pour le reste de la session \u2014 ou de placer les joueurs perturbateurs sur une <strong>d\u00e9lai d&#039;attente temporaire<\/strong>.<\/p>\n<p>La peine de prison est <strong>stock\u00e9 dans la base de donn\u00e9es<\/strong> et ne fait que diminuer <strong>pendant que le joueur est en ligne<\/strong> et en utilisant ce caract\u00e8re sp\u00e9cifique.<\/p>\n<p><strong>Il existe de nombreuses options configurables pour utiliser la ressource \u00e0 votre guise\u00a0:<\/strong><\/p>\n<ul>\n<li>Groupes configurables pour avoir acc\u00e8s aux commandes.<\/li>\n<li>Noms de texte\/commande configurables (langue).<\/li>\n<li>Emplacement de prison d&#039;administration configurable.<\/li>\n<li>Emplacement de lib\u00e9ration de la prison administrative configurable.<\/li>\n<li>Commande de liste de prison admin configurable : affiche tous les joueurs actuellement emprisonn\u00e9s\/ck\u00e9s par l&#039;administrateur.<\/li>\n<li>Contr\u00f4les configurables \u00e0 d\u00e9sactiver lorsque le joueur est emprisonn\u00e9\/bloqu\u00e9 par l&#039;administrateur.<\/li>\n<li>Menu pour afficher les utilisateurs qui sont emprisonn\u00e9s\/bloqu\u00e9s par l&#039;administrateur.<\/li>\n<li>Journalisation du webhook Discord (suivez qui emprisonne\/lib\u00e8re et met \u00e0 jour l&#039;heure).<\/li>\n<li>Configuration des buckets de routage optionnels lors du chargement \/ adminjail.<\/li>\n<li>Autorisations Ace. (VOIR LA DOCUMENTATION).<\/li>\n<\/ul>\n<p><strong>Commandes:<\/strong><\/p>\n<p>&gt; .\/adminjail (playerID, reason, time) \u2013 emprisonner un joueur pendant x temps.<br \/>\n&gt; .\/adminjailtime \u2013 voir le temps qu\u2019il vous reste actuellement.<br \/>\n&gt; .\/adminjailrelease (playerID) \u2013 lib\u00e8re un joueur de la prison d\u2019administration.<\/p>","protected":false},"featured_media":199871,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[1138,96,512,2907,511],"product_tag":[],"class_list":["post-199870","product","type-product","status-publish","has-post-thumbnail","product_cat-admin-tools","product_cat-esx-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","product_cat-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product\/199870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=199870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/199871"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=199870"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_brand?post=199870"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_cat?post=199870"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_tag?post=199870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}