Skip to main content

Modern Community Integration


Manually whitelisting players via SteamID is a thing of the past. Modern FiveM servers utilize Discord as their primary database for permissions. This ensures that if a player is given a “Police” role in Discord, they automatically receive those powers in-game, and if they leave your Discord, they are instantly removed from the whitelist.
Reading TimeDifficultyLast Updated
10 minutesIntermediateJanuary 2026

1. Core Prerequisites

To bridge FiveM and Discord, you need two essential resources:
  1. Badger-Discord-API: The bridge that fetches player roles.
  2. DiscordAcePerms: The script that converts those roles into FiveM “Ace” permissions.

2. Creating the Bot

  1. Visit the Discord Developer Portal.
  2. Create a New Application and navigate to the Bot tab.
  3. Enable Server Members Intent (Critical for role fetching).
  4. Copy the Token and paste it into your server.cfg:
    set DiscordBotToken "YOUR_TOKEN_HERE"
    set GuildID "YOUR_DISCORD_SERVER_ID"
    

3. Mapping Roles to Ranks

Inside the config.lua of your permission script, you must link your Discord Role IDs (found by right-clicking a role in Discord) to FiveM groups:
roleList = {
    ['123456789012345'] = "group.admin",       # Founder Role
    ['987654321098765'] = "group.whitelisted", # Community Member Role
}

Automated Moderation

By using Discord-based whitelisting, you can automate your server flow. Set up an “Onboarding” channel in Discord where users must read rules to get a role; once they have that role, the FiveM server will automatically allow them to connect without any further manual intervention.

Support Channels

If you need assistance or have any questions, please contact our support team:

First Month Discount

Use code KB20 at checkout to get 20% off your first month of hosting!

Last Updated: January 2026 | FiveM: Discord synced.