Installation
Install pixel-loadingscreen and, if you want it, wire up the Discord profile badge.
On this page6
Requirements
2
3
Enable the Discord profile (optional)
The badge in the top-left shows the connecting player's Discord name and avatar. Without a token it falls back to their FiveM name and the default Discord avatar.
- Create an application at https://discord.com/developers/applications.
- Open the Bot tab and add a bot.
- Reset and copy the bot token.
- Paste it into
server/config.lua:
lua
Config.DiscordBotToken = "your-bot-token-here"The bot does not need to be in your Discord server and needs no intents or permissions, the lookup is a plain GET /users/{id} REST call.
A player only has a discord: identifier when the Discord desktop app is running and FiveM has detected it. Players without it always get the fallback. That is expected, not a fault.
If something goes wrong
Updating
config.json and server/config.lua are the only two files you own. Copy both out before dropping in a new version, then move your values back across.