RedM Natives

SC_PRESENCE_ATTR_SET_INT_EX

Hash0x0000000085488C49
Runtime nameScPresenceAttrSetIntEx
NamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207

Not called by the game's own scripts — behaviour may be incomplete.

Signature

BOOL SC_PRESENCE_ATTR_SET_INT_EX(const char* attrName, int value, BOOL p2);

Parameters

NameTypeDescription
attrNameconst char*—
valueint—
p2BOOL—

Returns BOOL

Usage

Lua
local retval = ScPresenceAttrSetIntEx(attrName, value, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x0000000085488C49, attrName, value, p2, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = ScPresenceAttrSetIntEx(attrName, value, p2);

// by hash
const retval = Citizen.invokeNative('0x0000000085488C49', attrName, value, p2, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x0000000085488C49, attrName, value, p2);

Sources

alloc8or RDR3 NativeDB

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