{"hash":"0xF34EE736CF047844","ns":"BUILTIN","name":"FLOOR","slug":"FLOOR","official":true,"named":true,"luaName":"Floor","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"value","type":"float"}],"summary":"Rounds a float value down to the next whole number","descriptions":[{"source":"alloc8or","format":"text","body":"Rounds a float value down to the next whole number"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xF34EE736CF047844","gtaJhash":"0x32E9BE04","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/BUILTIN/FLOOR","markdownUrl":"https://natives.borderlinerp.com/natives/BUILTIN/FLOOR.md","snippets":{"lua":"local retval = Floor(value)","luaInvoke":"local retval = Citizen.InvokeNative(0xF34EE736CF047844, value, Citizen.ResultAsInteger())","js":"const retval = Floor(value);","jsInvoke":"const retval = Citizen.invokeNative('0xF34EE736CF047844', value + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xF34EE736CF047844, value);","notes":["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."]}}