SET_DISCORD_RICH_PRESENCE_ASSET_TEXT
This native sets the hover text of the image asset for the discord rich presence implementation.
Signature
void SET_DISCORD_RICH_PRESENCE_ASSET_TEXT(char* text);Parameters
| Name | Type | Description |
|---|---|---|
text | char* | Text to be displayed when hovering over image asset. Note that you must also set a valid image asset using the SET_DISCORD_RICH_PRESENCE_ASSET native. |
Returns void
Description
This native sets the hover text of the image asset for the discord rich presence implementation.
Usage
SetDiscordRichPresenceAssetText(text)
-- always works, by hash
Citizen.InvokeNative(0xb029d2fa, text)JavaScript and C#
SetDiscordRichPresenceAssetText(text);
// by hash
Citizen.invokeNative('0xb029d2fa', text);Function.Call((Hash)0xb029d2fa, text);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.