This could be a issue on my end but I didn’t seem to get the buttons to actually work? All I did was change the text they hold. Didn’t remove the %% Just in Case.
Well as I read documentation on discord itself. You can’t click your “own” button links. But how-ever someone else (NEEDS to be a different account) Has the ability to click the buttons and direct them to the link that is bound to it. So if your code looks like.
Please read refer to my post above… I explained why you couldn’t click the button yourself. Else refer to the section below copy-pasted of a external game.
Discord doesn’t let you click your own buttons. However, everyone else can. This is a limitation with Discord.
The code now works fine after testing it on an alt account on the same computer you can click these. You just can’t click the buttons as the author of the presence.
But Kudo’s I love this script and brings better understanding to my community!
The way I look at the discord documentation for developers Shows that only 2 buttons are supported to be on a game presence. The picture below is what game developers use discord’s documentation with.
Change the CHANGEME To the text that you want to display and the LINK To a Browser URL. You can NOT Click your own buttons try using an alt. Also you need to disconnect and reconnect to the server for it to show up on your discord because it only looks at the firstspawn.
I recommend - for easier setup - make change this Connect button to:
{index = 1,name = ‘Join Server’,url = ‘fivem://connect/’ … GetCurrentServerEndpoint()},
The IP will then change itself accordingly - useful when running multiple servers.