# CFX::SET_DISCORD_APP_ID

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

## Signature

```c
void SET_DISCORD_APP_ID(char* appId);
```

## Parameters

- `appId` (`char*`) — A valid Discord API App Id, can be generated at https://discordapp.com/developers/applications/

## Returns

`void`

## Description

*Source: Cfx.re native reference*

This native sets the app id for the discord rich presence implementation.

## Usage

### Lua

```lua
SetDiscordAppId(appId)

-- always available, by hash
Citizen.InvokeNative(0x6a02254d, appId)
```

### JavaScript

```js
SetDiscordAppId(appId);

// by hash
Citizen.invokeNative('0x6a02254d', appId);
```

### C#

```csharp
Function.Call((Hash)0x6a02254d, appId);
```

*Sources: Cfx.re native reference.*
