# 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="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FG7Ppyqch4zt8DljqHQgy%2Fimage.png?alt=media&#x26;token=8f310974-d6cb-4b38-9f82-09a8efba2c27" 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="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FcjHtQH2wOzZHLKnlKate%2FPreview.png?alt=media&#x26;token=5ffabc92-3a40-471e-9e58-daa4e56f7c4b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2Fzw9EziTgdAbBnNIrzcHk%2FEasyadmin%20menu.png?alt=media&#x26;token=23591089-fa33-4784-8f09-f83edab1c70d" alt=""><figcaption><p>EasyAdmin Option</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FG8kLQKOZOCLYbzNXkd2b%2FStaff%20Jail%20Sentence%20menu.png?alt=media&#x26;token=24634492-9c72-40c3-9b6b-7cb06049e5c6" alt=""><figcaption><p>When Pressed Menu</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FMkZo7vwQQkN5c3EVpIYF%2FStaff%20Jailed%20Alert.png?alt=media&#x26;token=23817c38-7f60-45ae-97e1-bf5aa3c3b0b3" alt=""><figcaption><p>Staff Jail Admin Alert</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FeE23ixyayfnDxeNQUyh9%2FUser%20Jailed%20Alert%20.png?alt=media&#x26;token=4a3740fa-6d0f-4fb5-b06a-319d9838669b" alt=""><figcaption><p>Staff Jail User Alert</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2F9YB2pwM8Ra9mHMZ8i4rR%2FSentence%20Length%20Left.png?alt=media&#x26;token=5c437a1f-6518-4e9a-8b52-5abb66b9a014" alt=""><figcaption><p>Staff Jail Sentence Left</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FK2xLgIXt8REw6aCMOWkq%2FAnti-Escape.png?alt=media&#x26;token=c51de41c-a416-4ec3-aed9-d47577220432" alt=""><figcaption><p>If the user attempts to escape</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2F8Rw2pj8mbiivhO0XtUOL%2FSentence%20Resume%20On%20Re-log%20%26%20script%20restart.png?alt=media&#x26;token=d67e605b-d04c-43a4-92af-415fed04d4d7" alt=""><figcaption><p>If Script Restarts or user re-logs</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FQqQRbR3kYBxTZlEUzQj8%2FDiscord%20Log.png?alt=media&#x26;token=4436aa50-4184-4d7e-a6a7-446566a84998" 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 %}
