Add Discord rich presence to your server
Discord rich presence shows your server's name, player count, and a custom image right in Discord when someone is playing on your server. It's free advertising - every player's friends see it. This lesson sets up the full integration from Discord developer portal to Lua script.
Build it
Create a Discord application
Go to https://discord.com/developers/applications → New Application. Name it after your server.
Go to Rich Presence → Art Assets. Upload images (512x512 minimum):
server_logo- your server's logoserver_large- a hero image or screenshot
Copy your Client ID (18-digit number) from the General Information page.
Set up the resource
resources/qu_discord_rpc/
fxmanifest.lua
client.lua
fx_version 'cerulean'
game 'gta5'
client_script 'client.lua'