To link Discord to FiveM, open the Discord desktop app on the same PC, signed in to the account you want to use, before you start FiveM. The first time, Discord asks you to authorize FiveM; accept it, and servers can read your Discord ID when you connect. There is no code to enter and no website to visit for this. The browser version and the phone app do not work for it.
Sources are Cfx.re's support site, Cfx.re forum staff replies, the txAdmin source code and Discord's own help pages, checked on 16 November 2026. We did not run these steps on a test PC for this article; where a step comes from community replies rather than Cfx.re itself, we say so.
Why do FiveM servers ask for your Discord?
A FiveM server identifies each player by several IDs. The FiveM documentation lists them: license and license2 for your Rockstar account, fivem for your Cfx.re account, steam, ip and discord, which is your Discord user ID.
Many roleplay servers use the Discord ID as a door check. txAdmin, the panel that ships with the FiveM server, has two allowlist modes built on it: one lets in only members of the server's Discord, the other only members who hold a specific role. Other servers use their own scripts to give in-game perks or jobs based on Discord roles.
The Discord ID is optional for FiveM itself. Plenty of servers never ask for it, and you can play without Discord installed. It only matters when the server you want to join requires it.
How does FiveM see your Discord account?
Through the Discord desktop app running on your PC. When Cfx.re added the feature in January 2019, the team explained that the FiveM client uses internal Discord APIs that work through the desktop app (Cfx.re called them "internal Discord overlay APIs") to authorize a FiveM app on your account for the identify scope only, and then passes the resulting discord: identifier to the server. Cfx.re called it experimental at the time and warned that it could break and that rate limits could leave some players without the ID even with Discord running.
That design explains every rule in this guide: Discord has to be the desktop client, it has to be running before FiveM starts, and it has to be signed in to the right account. txAdmin's own rejection message says it directly: open the Discord desktop app and try again, because the web app won't work.
How to link Discord to FiveM
These steps follow a Cfx.re staff reply on the forum and a community tutorial built on it.
- Install the Discord desktop app for Windows from discord.com if you only use Discord in a browser.
- Close FiveM completely.
- Fully close Discord as well, so it is not still running in the background.
- Open the Discord desktop app normally, not with "Run as administrator", and check that you are signed in to the account you want the server to see.
- Start FiveM and let it load to the home screen.
- Switch to Discord. An authorization prompt for FiveM should appear. Select Authorize.
To check the result, a community tutorial on the Cfx.re forum says to open FiveM's settings (top right) and look at the linked identities section, where the Discord logo should show your username. Then connect to the server again.
Is linking Discord in the Cfx.re Portal the same thing?
No, and mixing the two up causes a lot of confusion. Cfx.re's support site describes a separate link on the Portal's linked accounts page, where you select Link Account under the Discord icon and authorize it on Discord's website. Cfx.re states its purpose: receiving roles in the Cfx.re Discord server. It does not say game servers read that link, and the server-side ID still comes from the desktop app as described above.
Signing in to FiveM with your Cfx.re account is a third, separate step. Cfx.re's article on it describes the Link account button at the top of the client (also under the gear icon) and a Sign in with Cfx option. It gives servers your fivem identifier, not your Discord one.
What to do when a server cannot find your Discord
A server using txAdmin's Discord allowlist rejects you with this message when the ID is missing: "You do not have the discord identifier, which is required to validate if you have joined our Discord server." Servers with their own scripts show their own wording, such as "Discord ID could not be found, make sure discord is running". The cause is the same either way: the server did not receive a discord: identifier from your client.
Work through these, starting each attempt with FiveM closed:
- Open Discord first. Let the desktop app load completely, then start FiveM. A long-time Cfx.re forum helper gave this exact order as the fix in a 2025 thread.
- Use the official desktop app. The browser version cannot provide the ID.
- Do not run Discord as administrator. Cfx.re staff list this among the first things to check when no prompt appears.
- Remove client mods. Cfx.re forum staff and helpers name modified clients such as Vencord and BetterDiscord as blockers. Uninstall them, link, and reinstall afterward if you want.
- Clear an old authorization. If FiveM already appears under Authorized Apps in Discord but FiveM's linked identities show no Discord, deauthorize it (steps below), then repeat the linking steps so the prompt shows again. If that still fails, reinstall Discord; Cfx.re staff note that some players had to.
- Restart the PC. Then open Discord, then FiveM.
Linked, but the server still turns you away
Read the rejection message carefully. If it says you must join the server's Discord, or that you do not have an allowlisted role, your link works and the server has already read your Discord ID. You are just not approved yet. txAdmin's messages for this case are "You are required to join our Discord server to connect" and "You do not have a [sic] allowlisted role required to join."
Nothing on your PC fixes that. Join the community's Discord with the same account you linked and follow its application or verification process. Roles are handed out by that server's staff or its bot, so ask them if you think you should already have one.
Running the server yourself? Our guide to a Discord role whitelist for FiveM covers the allowlist setup and how to test it, and the txAdmin Discord bot setup covers connecting the bot.
How to unlink Discord from FiveM
Cfx.re's support article on unlinking Discord points you to Discord's settings, not to FiveM:
- Sign in to Discord.
- Select the Settings (gear) icon.
- Select Authorized Apps.
- Select FiveM (or RedM).
- Select Deauthorize, then confirm with Deauthorize again.
Discord's own help page places the gear in the lower-left corner on desktop and in the browser. On mobile, it says to tap your avatar in the bottom-right corner, then the gear at the top right, then Authorized Apps, and remove the app with the x button.
After deauthorizing, servers that require Discord will reject you until you link again.
How to switch FiveM to a different Discord account
Deauthorize FiveM on the old Discord account as shown above. Sign out of Discord and sign in with the account you want to use, then repeat the linking steps from the start: FiveM closed, Discord desktop app open first, FiveM second, authorize the prompt.
One open question: a player reported on the Cfx.re forum in 2025 that FiveM still showed their Discord account as connected after they had deauthorized it, and the thread closed without an answer. If the linking steps do not replace it, contact Cfx.re support through support.cfx.re and describe what the settings screen shows.
Questions
Can I link Discord to FiveM from my phone?
No. The link comes from the Discord desktop app on the PC where FiveM runs. The phone app and the browser version do not provide the identifier, so a server that requires Discord will not see you.
What does FiveM get access to when I authorize it?
According to Cfx.re's 2019 announcement, the FiveM app is authorized for Discord's identify scope only, which is what servers need to read your user ID. You can review or remove it at any time under Authorized Apps in Discord.
Do I need Discord to play FiveM at all?
No. Only servers that check for the Discord ID require it. If you are new and still setting up, start with what FiveM is and what you need or the guide on joining your first FiveM server.