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