# CFX::SET_DISCORD_RICH_PRESENCE_ASSET_TEXT

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

## Signature

```c
void SET_DISCORD_RICH_PRESENCE_ASSET_TEXT(char* text);
```

## Parameters

- `text` (`char*`) — Text to be displayed when hovering over image asset. Note that you must also set a valid image asset using the SET_DISCORD_RICH_PRESENCE_ASSET native.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

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

## Usage

### Lua

```lua
SetDiscordRichPresenceAssetText(text)

-- always available, by hash
Citizen.InvokeNative(0xb029d2fa, text)
```

### JavaScript

```js
SetDiscordRichPresenceAssetText(text);

// by hash
Citizen.invokeNative('0xb029d2fa', text);
```

### C#

```csharp
Function.Call((Hash)0xb029d2fa, text);
```

*Sources: Cfx.re native reference.*
