Community Utility

FiveM Discord Rich Presence

Visually configure your server's custom Discord status and instantly generate the Lua code for your client-side scripts.

Make a great first impression before they even join the Discord.

Use Vice-Forge's visual builder to create a stunning custom loading screen for your GTA RP server in 60 seconds.

Configure RPC

Found in the Discord Developer Portal.

Generated Lua Code

Citizen.CreateThread(function()
    while true do
        -- This is the Application ID from your Discord Developer Portal
        SetDiscordAppId('YOUR_APP_ID_HERE')

        -- Set the large and small images and their hover text
        SetDiscordRichPresenceAsset('logo')
        SetDiscordRichPresenceAssetText('Playing on Vice-Forge')
        SetDiscordRichPresenceAssetSmall('verified')
        SetDiscordRichPresenceAssetSmallText('Whitelisted Player')

        -- Set interactive buttons
        SetDiscordRichPresenceAction(0, 'Join Discord', 'https://discord.gg/yourserver')
        SetDiscordRichPresenceAction(1, 'Connect', 'fivem://connect/127.0.0.1')

        Wait(60000) -- Update every 60 seconds
    end
end)

What is Discord Rich Presence (RPC)?

Discord Rich Presence allows you to customize the "Playing a game" status that appears on your players' Discord profiles while they are in your FiveM server. Instead of just showing "Playing FiveM", you can show your server's custom logo, a short description, and interactive buttons that let their friends join your Discord or connect directly to your server!

How to install your custom RPC script

  • First, go to the Discord Developer Portal and create a new Application. The name of the application will be what players see next to "Playing..." (e.g., Name it "Vice RP").
  • Copy your Application ID and paste it into the generator above.
  • In the Discord Developer Portal, go to "Rich Presence" → "Art Assets" and upload your server logo. Name the asset logo.
  • Fill out the rest of the form above and copy the generated Lua code.
  • Create a new folder in your server's resources directory called my_rpc. Inside, create an empty fxmanifest.lua and a client.lua. Paste the generated code into client.lua.
  • Make sure to add client_script 'client.lua' to your fxmanifest! Start the script and enjoy your custom Discord status!