Configuration
Getting 919Admin Classic working correctly requires setting up your permissions system.
Default Permission Groups
919Admin Classic ships with three built-in permission groups:
| Group | Description |
|---|---|
god |
Full access to everything |
admin |
Standard admin permissions |
mod |
Moderation permissions |
Assigning Permissions
Open config/config_permissions.lua. Under Config.PermissionedUsers, assign permission groups to players using their game license.
To find a player's license, locate them in txAdmin and open the IDs tab. Copy the identifier prefixed with license: — note that license2:, fivem:, and live: are not valid here.
Config.PermissionedUsers = {
-- ["LICENSE"] = "god",
["GAME_LICENSE_HERE"] = "god",
}Replace GAME_LICENSE_HERE with your license. We recommend assigning yourself god as it has all permissions by default.
Discord Role Permissions
919Admin Classic 1.14 LTS and newer supports assigning permissions via Discord roles natively.
Set Config.DiscordRoles.Enabled to true, fill in your bot token and server ID, then map Discord role IDs to permission groups in the Roles table.
Config.DiscordRoles = {
Enabled = true,
-- Bot must be in your server with correct permissions
BotToken = "BOT_TOKEN",
-- Right-click your server in Discord (Developer Mode) and copy the ID
GuildID = "DISCORD_SERVER_ID",
-- Map role IDs to permission groups
-- Right-click a role in Discord (Developer Mode) and copy the ID
Roles = {
["ROLE_ID"] = "god",
}
}To get role and server IDs, enable Developer Mode in Discord under Settings > Advanced, then right-click the server or role and select Copy ID.