SC_PRESENCE_ATTR_SET_INT_EX
Sets the named Social Club presence attribute to an integer value. Returns true on success.
Signature
BOOL SC_PRESENCE_ATTR_SET_INT_EX(const char* attrName, int value, BOOL p2); // 0x0000000085488C49 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | attrName | const char* |
| 2 | value | int |
| 3 | p2 | BOOL |
Facts
| Name | SC_PRESENCE_ATTR_SET_INT_EX |
|---|---|
| Hash | 0x0000000085488C49 |
| 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(0x0000000085488C49, -- SC_PRESENCE_ATTR_SET_INT_EX
"text", -- const char* attrName
0, -- int value
false -- BOOL p2
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x0000000085488C49", // SC_PRESENCE_ATTR_SET_INT_EX
"text", // const char* attrName
0, // int value
false, // BOOL p2
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x0000000085488C49, // SC_PRESENCE_ATTR_SET_INT_EX
"text", // const char* attrName
0, // int value
false // BOOL p2
);Related SOCIALCLUB natives
- SC_PRESENCE_ATTR_SET_FLOAT_EX
- SC_PRESENCE_ATTR_SET_STRING_EX
- SC_PRESENCE_ATTR_SET_FLOAT
- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT
- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_FOR_TYPE
- SC_INBOX_MESSAGE_GET_DATA_INT
- SC_INBOX_SET_MESSAGE_AS_READ_AT_INDEX
- SC_PROFANITY_CHECK_STRING
- SC_PROFANITY_GET_CHECK_IS_PENDING
- SC_PROFANITY_GET_CHECK_IS_VALID
- SC_PROFANITY_GET_STRING_PASSED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.