> For the complete documentation index, see [llms.txt](https://arctic-development.gitbook.io/arctic-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arctic-development.gitbook.io/arctic-development/easyadmin-plugins/ea-or-staff-jail.md).

# EA | Staff Jail

The **Staff Jail Script** for FiveM is the one-stop solution for EasyAdmin Jailing, this script works seamlessly with any framework!

***

<figure><img src="/files/7zh66Nef7GwSoeKKYldi" alt=""><figcaption></figcaption></figure>

1. [VeniceNotify](https://forum.cfx.re/t/codem-advancednotifysystem/4812202)
2. [OkOkNotify](https://forum.cfx.re/t/okoknotify-standalone-paid/3907758)
3. [Ox\_lib](https://github.com/overextended/ox_lib)
4. Chat
5. GTA

***

<figure><img src="/files/SpMscVNMZqsjkgvXax7q" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WYPIt7Ex0yM2iuZf8VSy" alt=""><figcaption><p>EasyAdmin Option</p></figcaption></figure>

<figure><img src="/files/E1OR2S3M7DDovoW9UDKf" alt=""><figcaption><p>When Pressed Menu</p></figcaption></figure>

<figure><img src="/files/8NGS2gmsGF4rHDBH3vK2" alt=""><figcaption><p>Staff Jail Admin Alert</p></figcaption></figure>

<figure><img src="/files/cywtfWjjQowJH10AKUxU" alt=""><figcaption><p>Staff Jail User Alert</p></figcaption></figure>

<figure><img src="/files/TdPM0FSdUMsjeoQdGNl8" alt=""><figcaption><p>Staff Jail Sentence Left</p></figcaption></figure>

<figure><img src="/files/yJfo6YDdMkUmz3mhfp1f" alt=""><figcaption><p>If the user attempts to escape</p></figcaption></figure>

<figure><img src="/files/cLeUNTznJEqykcTLl4A5" alt=""><figcaption><p>If Script Restarts or user re-logs</p></figcaption></figure>

<figure><img src="/files/ksydkZxREZRdF2ZBnKXc" alt=""><figcaption><p>Discord Logging Preview</p></figcaption></figure>

***

```lua
local NotifyType = "Ox_lib"           -- Change to: "Ox_lib", "OkOkNotify", "EasyAdmin", "GTA", "Mythic"
local notifyTime = 5000
local notifyPosition = 'center-right' -- only for Ox_lib

local minSentenceLength = 60     -- Minimum sentence length in seconds
local maxSentenceLength = 800    -- Maximum sentence length in seconds

-- Jail location (center point of the zone) - used for permanent debug zone
local sentenceLocation = vector4(1690.46, 2560.29, 45.56, 255.75)

-- Release location
local sentenceEndlocation = vector4(1848.69, 2585.56, 45.67, 268.58)

-- Anti-escape zone settings
local jailZoneRadius = 145.0                -- Max allowed distance from center
local escapePenaltySeconds = 30             -- Time added per escape attempt

-- Permanent debug zone (always visible for coverage checking)
local AlwaysShowPermanentDebugZone = true   -- Set to false when you're done tuning
local remainingUpdateInterval = 5000        -- Report remaining time every 5 seconds
```

{% hint style="success" %}
Downloads

\[PAID | Open Source] [Official Store Link](https://arcticdevlabs.com/package/script?script=EA-Staff-Jail)
{% endhint %}
