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!

Chat
GTA


In-Game Preview (Without Staff Role)

In-Game Preview (If On Staff LOA)

In-Game Preview (Without Being On Duty)

In-Game Preview (On Duty)

Discord Logging Embed (On Duty)

In-Game Preview (Off Duty)

Discord Logging Embed (Off Duty)

AFK Clock Out Alert (Time Is Changeable)

Discord Logging Embed (AFK Clock-Out)

Discord Logging Embed (Player Leave Without Clocking Off)
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
}
Last updated