# Admin Setup

## Learning How To Add&#x20;

### Adding Admin Groups

Adding admin groups is very simple and just requires some creativity for the name and some good copy and pasting skills! You can create as many groups as you please but each group must have all the values.&#x20;

Example of what a admin group must have (true/false can be changed)

{% code title="admingroups.lua" %}

```lua
AdminGroups = {
    ["Owner"] = {
        AllPermissions = false,
        OtherDetections = {
            DpEmotes = true,
            QalleJail = true,
            HDJail = true,
            OKOKCHAT = true
        },
        Commands = {
            HelpCommand = true,
            RemoveKick = true,
            EntityWipe = true,
            VehicleWipe = true,
            PlayerInfo = true,
            UnBan = true,
            GetCachedPlayers = true,
            BanCachedPlayer = true,
            ConvertBans = true,
            ConvertKicks = true,
            CreateBackup = true,
            LoadBackup = true,
            RemoveBackup = true
        },
        ESXOptions = {
            BlacklistedItem = true,
            BlacklistedItemAmount = true,
            FakeBills = true,
            FakePickup = true,
            PoliceHandcuff = true,
            PoliceDrag = true,
            PoliceInVehicle = true,
            PoliceOutVehicle = true
        },
        QBOptions = {
            BlacklistedItem = true,
            PoliceJailPlayer = true,
            PoliceCuffPlayer = true,
            PoliceEscortPlayer = true,
            PoliceSetOutVeh = true,
            PoliceSetInVeh = true
        },
        Detections = {
            BlacklistedWeapon = true,
            BlacklistedVehicle = true,
            BlacklistedPed = true,
            BlacklistedObject = true,
            NightVision = true,
            ThermalVision = true,
            Godmode = false,
            Spectator = true,
            TorqueModifier = true,
            EngineModifier = true,
            BlacklistedWords = true,
            BlacklistedName = true,
            BlacklistedEvents = true,
            VPN = true,
            Ping = true,
            BlacklistedPeds = true,
            BlacklistedObjects = true,
            Noclip = true,
            Freecam = true,
            Explosions = false,
            Particles = true,
            ClearPedTasks = true,
            AntiFire = true,
            GiveWeapon = true,
            RemoveWeapons = true,
            MenuDetection = true,
            AimAssist = true,
            Task = true,
            Ragdoll = true,
            InfiniteStamina = true,
            StopResource = true,
            GiveArmor = true,
            Executor = true,
            Taze = true,
            AntiPlayerBlips = true,
            AntiPedSizeMods = true,
            AttachedEntities = true
        }
    }
}

```

{% endcode %}

### Adding Admins To A Group

Even though you created a group in the admin groups you need to add the same group inside of the admins file! This is so you can set your wonderful staff to their right roles! \
\
The admin system supports the following below:\
\- Discord ID | ex: **discord:267181487328067585**\
\- Game License | ex: **license:b57267ca8ac5ee2e6218821d610f9aa9ff30a1c2**\
\- Steam Hex | ex: **steam:11000010ed87479**\
\- Live ID | ex: **live:985153924654637**\
\- Xbox Live | ex: **xbl:2535467967978841**\
\- Ip | ex: **ip:240.121.222.0**\
\
Example Below

{% code title="admins.lua" %}

```json
Admins = { --Supports these = [steam, license, discord id, xbox, liveid, ip]
    ["Owner"] = {
        ["Hobo"] = "discord:267181487328067585"
    },
}
```

{% endcode %}

Example of discord id roles
