Discord ACE Permissions¶
EasyAdmin supports mapping Discord roles to FiveM ACE permission groups. This allows Discord roles to grant server permissions automatically.
How It Works¶
When a player joins the server, EasyAdmin reads their Discord roles and applies corresponding ACE permissions. Permissions sync:
- When a player connects to the server
- When a player runs
/refreshpermsin Discord - When Discord role changes are detected (via the
guildMemberUpdateevent)
Granting Permissions¶
Use add_ace with the role: principal type:
1 2 3 4 5 6 7 8 9 | |
Replace the role ID with the actual Discord role ID (right-click the role in Discord, Copy Role ID).
Inheriting from Groups¶
To make a Discord role inherit from an existing FiveM group:
1 | |
This makes the Discord role behave as if the player is a member of group.admin, inheriting all permissions assigned to that group.
Migrating from Other ACE Resources¶
If you previously used a third-party ACE resource like DiscordAcePerms, replace the old format:
1 | |
With the EasyAdmin format in server.cfg:
1 | |
Getting Role IDs¶
- In Discord, enable Developer Mode (User Settings > Advanced > Developer Mode).
- Right-click the role and select Copy Role ID.
Permission Priority¶
ACE permission evaluation follows FiveM's standard priority rules:
- Specific
add_aceentries override group membership allowtakes precedence overdeny- More specific permissions (e.g.,
easyadmin.player.kick) override broader ones (e.g.,easyadmin.player)