SC_PRESENCE_ATTR_SET_FLOAT_EX
Hash
0x00000000467F4CAARuntime name
ScPresenceAttrSetFloatExNamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207
Not called by the game's own scripts — behaviour may be incomplete.
Signature
BOOL SC_PRESENCE_ATTR_SET_FLOAT_EX(const char* attrName, float value, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
attrName | const char* | — |
value | float | — |
p2 | BOOL | — |
Returns BOOL
Usage
local retval = ScPresenceAttrSetFloatEx(attrName, value, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0x00000000467F4CAA, attrName, value, p2, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = ScPresenceAttrSetFloatEx(attrName, value, p2);
// by hash
const retval = Citizen.invokeNative('0x00000000467F4CAA', attrName, value + 0.0000001, p2, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x00000000467F4CAA, attrName, value, p2);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.