SC_PRESENCE_ATTR_SET_STRING_EX
Sets the named Social Club presence attribute to a string value. Returns true on success.
Signature
BOOL SC_PRESENCE_ATTR_SET_STRING_EX(const char* attrName, const char* value, BOOL p2); // 0x00000000EB2D93B3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | attrName | const char* |
| 2 | value | const char* |
| 3 | p2 | BOOL |
Facts
| Name | SC_PRESENCE_ATTR_SET_STRING_EX |
|---|---|
| Hash | 0x00000000EB2D93B3 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x00000000EB2D93B3, -- SC_PRESENCE_ATTR_SET_STRING_EX
"text", -- const char* attrName
"text", -- const char* value
false -- BOOL p2
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x00000000EB2D93B3", // SC_PRESENCE_ATTR_SET_STRING_EX
"text", // const char* attrName
"text", // const char* value
false, // BOOL p2
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x00000000EB2D93B3, // SC_PRESENCE_ATTR_SET_STRING_EX
"text", // const char* attrName
"text", // const char* value
false // BOOL p2
);Related SOCIALCLUB natives
- SC_PRESENCE_ATTR_SET_FLOAT_EX
- SC_PRESENCE_ATTR_SET_INT_EX
- SC_PRESENCE_ATTR_SET_FLOAT
- SC_PROFANITY_CHECK_STRING
- SC_PROFANITY_GET_STRING_PASSED
- SC_PROFANITY_GET_STRING_STATUS
- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING
- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID
- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_FOR_TYPE
- SC_INBOX_MESSAGE_GET_DATA_STRING
- SC_INBOX_SET_MESSAGE_AS_READ_AT_INDEX
- SC_PROFANITY_GET_CHECK_IS_PENDING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.