# CFX::SET_DISCORD_RICH_PRESENCE_ASSET

- **Hash:** `0x53DFD530`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetDiscordRichPresenceAsset`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_DISCORD_RICH_PRESENCE_ASSET

## Signature

```c
void SET_DISCORD_RICH_PRESENCE_ASSET(char* assetName);
```

## Parameters

- `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

*Source: Cfx.re native reference*

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

## Usage

### Lua

```lua
SetDiscordRichPresenceAsset(assetName)

-- always available, by hash
Citizen.InvokeNative(0x53dfd530, assetName)
```

### JavaScript

```js
SetDiscordRichPresenceAsset(assetName);

// by hash
Citizen.invokeNative('0x53dfd530', assetName);
```

### C#

```csharp
Function.Call((Hash)0x53dfd530, assetName);
```

*Sources: Cfx.re native reference.*
