RedM Natives

NETWORK_SET_RICH_PRESENCE

Hash0x1DCCACDCFC569362
Runtime nameNetworkSetRichPresence
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1DCCACDCFC569362

Signature

void NETWORK_SET_RICH_PRESENCE(int p0, Any* p1, int p2, int p3);

Parameters

NameTypeDescription
p0int—
p1Any*—
p2int—
p3int—

Returns void

Usage

Lua
local p1 = NetworkSetRichPresence(p0, p2, p3)

-- always works, by hash
local p1 = Citizen.InvokeNative(0x1DCCACDCFC569362, p0, Citizen.PointerValueInt(), p2, p3)
JavaScript and C#
JavaScript
const p1 = NetworkSetRichPresence(p0, p2, p3);

// by hash
const p1 = Citizen.invokeNative('0x1DCCACDCFC569362', p0, Citizen.pointerValueInt(), p2, p3);
C#
var p1 = new OutputArgument();
Function.Call((Hash)0x1DCCACDCFC569362, p0, p1, p2, p3);
// p1.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

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