Rich Presence Buttons not appearing

Hi everyone, i’m not a developer, but i was just having fun with a FiveM server and i can’t put on a button xD. I tried too many things, but none works. I have a fxmanifest and i’m loading with

ensure vrp_discord

fxmanifest:

fx_version 'cerulean'
games { 'gta5' }

client_script 'discord.lua'

discord.lua

Citizen.CreateThread(function()
    while true do
        -- ID da Aplicação Criada
        appId = --

        -- Nomes Das Imagens
        smallPic = 'big'
        bigPic = 'big'

        SetDiscordAppId(appId)

        -- Descrição do Rich Presence
		SetRichPresence("teste")
        -- SetRichPresence("Moradores " .. #GetActivePlayers() .. "/1000")
        
        -- Imagem Grande
        SetDiscordRichPresenceAsset(bigPic)
        SetDiscordRichPresenceAssetText('Teste')
        
        -- Imagem Pequena
        SetDiscordRichPresenceAssetSmall(smallPic)
        SetDiscordRichPresenceAssetSmallText('Teste small')
        
        -- Botões Interação
        SetDiscordRichPresenceAction(0, "First Button!", "fivem://connect/localhost:30120")

        Citizen.Wait(60000)
    end
end)

image

Help me, xxD

Try changing the url to

https://cfx.re/join/xxxxxx

instead of the

fivem://connect/localhost:30120

because as far I remember, discord support only normal (web) urls

still not working, i tried with urls like instagram, but doesn’t work too.

Did you manage to solve it?

Anybody find out how to fix this issue in 2025?

Hello, SetDiscordRichPresenceAction - FiveM Natives @ Cfx.re Docs