RedM Natives

SET_DISCORD_RICH_PRESENCE_ASSET_SMALL_TEXT

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

Hash0x35E62B6A
Runtime nameSetDiscordRichPresenceAssetSmallText
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_DISCORD_RICH_PRESENCE_ASSET_SMALL_TEXT(char* text);

Parameters

NameTypeDescription
textchar*

Text to be displayed when hovering over small image asset. Note that you must also set a valid small image asset using the SET_DISCORD_RICH_PRESENCE_ASSET_SMALL native.

Returns void

Description

Cfx.re native reference

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

Usage

Lua
SetDiscordRichPresenceAssetSmallText(text)

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

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

Sources

Cfx.re native reference

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