How to Configure Discord-Based Whitelisting in FiveM Delete
How to Configure Discord-Based Whitelisting in FiveM | EUGameHost
Set up Discord-based whitelisting to control who can join your FiveM server using Discord roles.
This allows you to automatically grant access, staff permissions, and whitelist status based on roles inside your Discord server.
Difficulty: Intermediate
Time Required: 10 Minutes
What You Need
For Discord role syncing, the most common setup uses:
- Badger Discord API
- DiscordAcePerms
These resources connect Discord roles to FiveM ACE permissions.
Step 1: Create a Discord Bot
Go to the Discord Developer Portal.
Click:
New Application
Create a new bot application.
Go to:
Bot
Enable:
Server Members Intent
This is required for role syncing.
Step 2: Get Your Bot Token & Server ID
Copy your Bot Token.
Then enable Developer Mode in Discord and copy your Server ID (Guild ID).
Step 3: Add to server.cfg
Open your server.cfg.
Add:
set DiscordBotToken "YOUR_BOT_TOKEN"
set GuildID "YOUR_SERVER_ID"
Replace both values with your actual token and server ID.
Example:
set DiscordBotToken "abc123token"
set GuildID "123456789012345678"
Step 4: Set Role Permissions
Open the config file for DiscordAcePerms.
Add your Discord role IDs.
Example:
roleList = {
['123456789012345'] = "group.admin",
['987654321098765'] = "group.whitelisted"
}
Replace the numbers with your actual Discord role IDs.
Step 5: Get Role IDs
In Discord, right-click the role and click:
Copy ID
Paste the role ID into the config.
Step 6: Restart Your Server
Restart your server from the EUGameHost Game Panel.
Watch the console to confirm the Discord bot connects successfully.
Common Use Cases
Staff Permissions
Admin role = group.admin
Server Whitelist
Verified role = group.whitelisted
Players without the role can be blocked from joining.
Best Practice
This is the easiest way to automate:
- whitelisting
- staff access
- police / EMS permissions
- auto onboarding
No manual Steam ID management needed.
Need Help?
If Discord roles are not syncing correctly, the EUGameHost support team can help verify your bot token and permissions setup.