RedM Natives

SET_DISCORD_RICH_PRESENCE_ASSET

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

Hash0x53DFD530
Runtime nameSetDiscordRichPresenceAsset
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_DISCORD_RICH_PRESENCE_ASSET(char* assetName);

Parameters

NameTypeDescription
assetNamechar*

The name of a valid asset registered on Discordapp's developer dashboard. note that the asset has to be registered under the same discord API application set using the SET_DISCORD_APP_ID native.

Returns void

Description

Cfx.re native reference

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

Usage

Lua
SetDiscordRichPresenceAsset(assetName)

-- always works, by hash
Citizen.InvokeNative(0x53dfd530, assetName)
JavaScript and C#
JavaScript
SetDiscordRichPresenceAsset(assetName);

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

Sources

Cfx.re native reference

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