{"hash":"0xA31DAFCDC33775E9","ns":"SOCIALCLUB","name":"SC_PRESENCE_ATTR_SET_FLOAT","slug":"SC_PRESENCE_ATTR_SET_FLOAT","official":true,"named":true,"luaName":"ScPresenceAttrSetFloat","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"attrHash","type":"Hash"},{"name":"value","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xC4C4575F62534A24","gtaJhash":"0x94BF0D35","unused":true,"sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/SOCIALCLUB/SC_PRESENCE_ATTR_SET_FLOAT","markdownUrl":"https://natives.borderlinerp.com/natives/SOCIALCLUB/SC_PRESENCE_ATTR_SET_FLOAT.md","snippets":{"lua":"local retval = ScPresenceAttrSetFloat(attrHash, value)","luaInvoke":"local retval = Citizen.InvokeNative(0xA31DAFCDC33775E9, attrHash, value, Citizen.ReturnResultAnyway())","js":"const retval = ScPresenceAttrSetFloat(attrHash, value);","jsInvoke":"const retval = Citizen.invokeNative('0xA31DAFCDC33775E9', attrHash, value + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xA31DAFCDC33775E9, attrHash, value);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}