RedM Natives

SET_RICH_PRESENCE

Sets the player's rich presence detail state for social platform providers to a specified string.

Hash0x7BDCBD45
Runtime nameSetRichPresence
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_RICH_PRESENCE(char* presenceState);

Parameters

NameTypeDescription
presenceStatechar*

The rich presence string to set.

Returns void

Description

Cfx.re native reference

Sets the player's rich presence detail state for social platform providers to a specified string.

Usage

Lua
SetRichPresence(presenceState)

-- always works, by hash
Citizen.InvokeNative(0x7bdcbd45, presenceState)
JavaScript and C#
JavaScript
SetRichPresence(presenceState);

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

Sources

Cfx.re native reference

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