CS_ADMINADUTY

A full-featured admin duty system. Includes admin duty toggle, noclip, vanish, team chat, giveskin, job handling, skin presets, HUD integration, Discord webhooks, and role-based permissions.


Installation

start cs_aduty

Configuration

Config.lua

This configuration file controls admin duty, noclip, vanish, team chat, giveskin, job handling, cooldowns, and rank-based skins.

General Settings
  • Locale – Language setting. Example: "EN".

  • cooldown – Time in ms before a player can toggle admin duty again. Example: 1000.

  • noclipCooldown – Time in ms before a player can use noclip again. Example: 1000.

  • serverJobRefreshInterval – Interval in ms to refresh player jobs. Example: 600000.

  • refreshJobsAndGroups – Interval in ms to refresh jobs and groups. Example: 60000.

  • showNameDistance – Distance to show player data in admin duty. Example: 100.

  • colorWhenTalking – HUD color of player names when talking. Example: 9.

  • ShowPlayerIdsAndNames – true / false – Show IDs, names, jobs, and health above players.

Admin Duty Commands
  • adutyCommand – Command to toggle admin duty. Example: 'ad'.

  • keyMappingToggleAdutyKey – Optional keybinding.

God Mode Settings
  • enableGodMode – true / false – Enable god mode in admin duty.

  • noRagdollInGodmode – true / false – Disable ragdoll in god mode.

NoClip Settings
  • enableNoclip – true / false – Enable noclip.

  • noclipCommand – Command to toggle noclip. Example: 'nc'.

  • keyMappingToggleNoclipKey – Default key. Example: 'X'.

  • noclipSpeedMultiplier – Multiplier when moving with shift. Example: 5.

  • vanishInNoclip – true / false – Hide admin in noclip mode.

Vanish Settings
  • enableVanish – true / false – Enable vanish.

  • vanishCommand – Command to toggle vanish. Example: 'v'.

  • keyMappingToggleVanishKey – Optional keybinding.

Permissions
  • AllowedCommandGroups – Table of groups allowed to use commands like noclip or vanish.

  • enableTeamchat – true / false – Enable team chat.

  • teamChatCommand – Command to send team chat messages. Example: 'tc'.

  • allowedGroupsTC – Groups allowed to use team chat.

  • enableGiveskin – true / false – Enable giveskin command.

  • giveSkinCommand – Command to give skins. Example: 'giveskin'.

  • allowedGroupsGiveSkin – Groups allowed to give skins.

Rank Skins

Each rank has pre-defined male and female skins for admin duty. Ranks include: owner, manager, teamleitung, admin, dev, mod, support.


Functions & Events

Client Events

cs_aduty:isInAduty -- returns a boolean
cs_aduty:toggleAduty -- toggles admin duty

Exports

exports['cs_hud']:isInAduty() -- returns true/false
exports['cs_hud']:toggleAduty() -- toggles admin duty
Notes
  • CustomClientSideNotification(msg, type) – Show admin duty notifications

  • TeamChatNotification(msg, type) – Show team chat notifications

Notification types:

NotifyTypes = { ["info"]="info", ["error"]="error", ["success"]="success", ["warning"]="warning" }

Webhook Configuration

webhooks.lua
WebhookAduty = {
    Colors = {
        ["Green"] = 5763719,
        ["Red"] = 15548997,
        ["Teamchat"] = 43775,
    },
    Enabled = "<discord-webhook-url>",
    Disabled = "<discord-webhook-url>",
    Teamchat = "<discord-webhook-url>",
    EnabledNoclip = "<discord-webhook-url>",
    DisabledNoclip = "<discord-webhook-url>",
}
  • Sends a message to Discord when admin duty, noclip, or team chat actions occur.

Tip: Leave the URL as an empty string "" if you do not want the webhook to trigger for that event.


Notes
  • Integrated job handling: changes job to "team" on aduty and restores original job on leave.

  • Automatic skin changes based on rank.

  • Works with old and new ESX versions.

  • Supports multiple admin ranks, god mode, noclip, vanish, and team chat.

  • Discord webhooks are optional but recommended.


Support

If you have any further questions, open a ticket on our discord server: discord.gg/core-services

Last updated

Was this helpful?