RedM Natives

SET_DISCORD_RICH_PRESENCE_ASSET_TEXT

This native sets the hover text of the image asset for the discord rich presence implementation.

Hash0xB029D2FA
Runtime nameSetDiscordRichPresenceAssetText
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_DISCORD_RICH_PRESENCE_ASSET_TEXT(char* text);

Parameters

NameTypeDescription
textchar*

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

Cfx.re native reference

This native sets the hover text of the image asset for the discord rich presence implementation.

Usage

Lua
SetDiscordRichPresenceAssetText(text)

-- always works, by hash
Citizen.InvokeNative(0xb029d2fa, text)
JavaScript and C#
JavaScript
SetDiscordRichPresenceAssetText(text);

// by hash
Citizen.invokeNative('0xb029d2fa', text);
C#
Function.Call((Hash)0xb029d2fa, text);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.