# EA | Staff Duty

The **Staff Duty Script** for FiveM is the one-stop solution for EasyAdmin abuse in game, this script works seamlessly with any framework and uses Discord Role IDS!

***

<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%2FZCm7HyoY3tVxnunOObOX%2Fimage.png?alt=media&#x26;token=b654c97a-e731-4cc9-9ae9-a322600d10e3" alt=""><figcaption></figcaption></figure>

<p align="center">In-Game Preview (Without Staff Role)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FJVc93hBYWGL8os9JFdyF%2Fimage.png?alt=media&#x26;token=16a8ca07-4da6-431f-bacb-1db25119f9a1" alt=""><figcaption></figcaption></figure>

<p align="center">In-Game Preview (If On Staff LOA)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FfqKWiht8oF0vNq8zqLN3%2Fimage.png?alt=media&#x26;token=a79250da-e9d1-4a34-8268-86872196444d" alt=""><figcaption></figcaption></figure>

<p align="center">In-Game Preview (Without Being On Duty)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FqLZJBJ6OimGQ55VwmKUT%2Fimage.png?alt=media&#x26;token=4fcc794d-1656-4cf0-bba4-37eb758b0ab7" alt=""><figcaption></figcaption></figure>

<p align="center">In-Game Preview (On Duty)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2F5R3q2OWuvFm9fj7UIpTe%2Fimage.png?alt=media&#x26;token=0b0372bc-561a-4f00-8fff-db4ba820f42d" alt=""><figcaption></figcaption></figure>

<p align="center">Discord Logging Embed (On Duty)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FYnyDObEBf5ECvIzFtBdQ%2Fimage.png?alt=media&#x26;token=eaf2703f-b887-46e4-b69e-11fb2346b7ea" alt=""><figcaption></figcaption></figure>

<p align="center">In-Game Preview (Off Duty)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FvezUw5kADhgIJAmUg4MU%2Fimage.png?alt=media&#x26;token=faba7d06-d7a7-40e0-87bc-d10d638d5b76" alt=""><figcaption></figcaption></figure>

<p align="center">Discord Logging Embed (Off Duty)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FNzmhPtiEHRSPmPzZFoCx%2Fimage.png?alt=media&#x26;token=299ca4ac-8356-48ff-a6b5-87550cb5eb53" alt=""><figcaption></figcaption></figure>

<p align="center">AFK Clock Out Alert (Time Is Changeable)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2F9jKkiDHszYWRMpN5naRH%2Fimage.png?alt=media&#x26;token=29581260-ae82-4b71-a483-11f157300b3d" alt=""><figcaption></figcaption></figure>

<p align="center">Discord Logging Embed (AFK Clock-Out)</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FPnFEjICxxk42AN9o2xE5%2Fimage.png?alt=media&#x26;token=bdeb6da5-862b-49a7-9767-0b96c5227e33" alt=""><figcaption></figcaption></figure>

<p align="center">Discord Logging Embed (Player Leave Without Clocking Off)</p>

***

```lua
local defaultWebhookURL = "Your Discord Webhook Link"

local notifyOptions = {} 
local NotifyType = "Ox_lib" 
local notifyTime = 5000
local notifyPosition = 'center-right'  -- ox_lib notification position [ignore if using other notify type]

-- AFK Clockout Settings
local UseAFKClockout = true -- Enable/Disable AFK clockout system
local AFKClockoutTime = 5 -- Time before clockout (numeric value)
local AFKClockoutTimeType = "Seconds" -- Options: Seconds, Minutes, Hours

-- Staff Settings
local LOARoleID = "1399132483706028193" -- LOA Role ID (blocks clock-in)
local StaffTeamRoleID = "1399155495314653224" -- Staff Team Role ID (required to use command)

local StaffRanks = {
    { roleID = "DiscordRoleID1", name = "Owner" },
    { roleID = "DiscordRoleID2", name = "Community Manager" },
    { roleID = "DiscordRoleID3", name = "Administrator" },
    { roleID = "DiscordRoleID4", name = "Moderator" },
    { roleID = StaffTeamRoleID, name = "Staff Team" },
    -- Add more roles here as needed, highest priority first
}
```

{% hint style="success" %}
Downloads

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