RedM Natives

SET_DISCORD_RICH_PRESENCE_ASSET_SMALL

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

Hash0xF61D04C4
Runtime nameSetDiscordRichPresenceAssetSmall
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_DISCORD_RICH_PRESENCE_ASSET_SMALL(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 small image asset for the discord rich presence implementation.

Usage

Lua
SetDiscordRichPresenceAssetSmall(assetName)

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

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

Sources

Cfx.re native reference

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