RedM Natives

SC_PRESENCE_ATTR_SET_STRING_EX

Hash0x00000000EB2D93B3
Runtime nameScPresenceAttrSetStringEx
NamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207

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

Signature

BOOL SC_PRESENCE_ATTR_SET_STRING_EX(const char* attrName, const char* value, BOOL p2);

Parameters

NameTypeDescription
attrNameconst char*—
valueconst char*—
p2BOOL—

Returns BOOL

Usage

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

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

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

Sources

alloc8or RDR3 NativeDB

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