SET_DISCORD_RICH_PRESENCE_ACTION
Sets a clickable button to be displayed in a player's Discord rich presence.
CFX
Signature
lua
SetDiscordRichPresenceAction(0, label, url)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| int | The button index, either 0 or 1. | |
| char* | The text to display on the button. | |
| char* | The URL to open when clicking the button. This has to start with `fivem://connect/` or `https://`. |
Usage
lua
SetDiscordRichPresenceAction(0, label, url)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
