> 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-duty.md).

# 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="/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/x1UjgxbQySbRYJ3qeDcf" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="/files/6zE00AlWunrdhkMDjg6s" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/1AYShU1XrGUjqob60VPs" alt=""><figcaption></figcaption></figure>

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

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

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

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

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

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

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

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

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

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

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

<figure><img src="/files/9912SggDExxKhHCH2NKq" 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 %}
