SET_DISCORD_RICH_PRESENCE_ACTION
Sets a clickable button to be displayed in a player's Discord rich presence.
Signature
void SET_DISCORD_RICH_PRESENCE_ACTION(int index, char* label, char* url);Parameters
| Name | Type | Description |
|---|---|---|
index | int | The button index, either 0 or 1. |
label | char* | The text to display on the button. |
url | char* | The URL to open when clicking the button. This has to start with |
Returns void
Description
Sets a clickable button to be displayed in a player's Discord rich presence.
Usage
SetDiscordRichPresenceAction(index, label, url)
-- always works, by hash
Citizen.InvokeNative(0xcbbc3fac, index, label, url)JavaScript and C#
SetDiscordRichPresenceAction(index, label, url);
// by hash
Citizen.invokeNative('0xcbbc3fac', index, label, url);Function.Call((Hash)0xcbbc3fac, index, label, url);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.