Create the application
- Open the Discord Developer Portal and click New Application.
- Choose the name carefully. Discord shows it as "Playing …" on every player's profile, so use your server name.
- Under General Information, copy the Application ID.
- Paste it into
config.lua:
Config.Discord = {
AppId = '123456789012345678',While AppId is still '000000000000000000', the F8 console shows Config.Discord.AppId is not set, Rich Presence will not show.
Upload your logo
Your logo is shown in character selection, as the small image while playing, and as the large image whenever a character photo is not available yet.
- In your application, open Rich Presence → Art Assets.
- Click Add Image(s) and upload your logo as a PNG or JPG of at least 512×512 pixels.
- Name it, for example
logo, and click Save Changes. - Use the exact same name in
config.lua:
LargeImage = { FallbackAsset = 'logo' },
SmallImage = { Asset = 'logo', Text = '{server_name}', HideWhenLargeIsFallback = true },Asset names are case sensitive.
Logo,logoandLOGOare three different assets. If the name does not match exactly, Discord shows no image.New assets can take 10 to 15 minutes to appear. This is normal Discord caching.
Character photos do not need to be uploaded here. They are loaded straight from your image host.
HideWhenLargeIsFallback hides the small image while the large image already shows your logo, so the logo does not appear twice.
Add buttons
Up to two buttons appear on each player's profile:
Buttons = {
{ label = 'Join Server', url = 'https://cfx.re/join/abc123' },
{ label = 'Discord', url = 'https://discord.gg/yourinvite' },
},- Find your join link on your server's page at servers.fivem.net. It looks like
https://cfx.re/join/abc123. - URLs must start with
https://. Discord does not acceptfivem://links, and the resource skips them. - Labels are cut to 32 characters. Placeholders work in labels.
- Remove a line to show only one button, or leave the list empty for none.
You never see your own buttons. Discord only shows them to other people viewing your profile.
Next step
Connect an image host so each character's photo can be shown.