SET_DISCORD_RICH_PRESENCE_ASSET_SMALL
This native sets the small image asset for the discord rich presence implementation.
Signature
void SET_DISCORD_RICH_PRESENCE_ASSET_SMALL(char* assetName);Parameters
| Name | Type | Description |
|---|---|---|
assetName | char* | 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
This native sets the small image asset for the discord rich presence implementation.
Usage
SetDiscordRichPresenceAssetSmall(assetName)
-- always works, by hash
Citizen.InvokeNative(0xf61d04c4, assetName)JavaScript and C#
SetDiscordRichPresenceAssetSmall(assetName);
// by hash
Citizen.invokeNative('0xf61d04c4', assetName);Function.Call((Hash)0xf61d04c4, assetName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.