RedM Natives

SET_DISCORD_APP_ID

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

Hash0x6A02254D
Runtime nameSetDiscordAppId
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_DISCORD_APP_ID(char* appId);

Parameters

NameTypeDescription
appIdchar*

A valid Discord API App Id, can be generated at https://discordapp.com/developers/applications/

Returns void

Description

Cfx.re native reference

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

Usage

Lua
SetDiscordAppId(appId)

-- always works, by hash
Citizen.InvokeNative(0x6a02254d, appId)
JavaScript and C#
JavaScript
SetDiscordAppId(appId);

// by hash
Citizen.invokeNative('0x6a02254d', appId);
C#
Function.Call((Hash)0x6a02254d, appId);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.