{"hash":"0xD0FFB162F40A139C","ns":"BUILTIN","name":"COS","slug":"COS","official":true,"named":true,"luaName":"Cos","game":"rdr3","apiset":"client","returnType":"float","params":[{"name":"value","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xD0FFB162F40A139C","gtaJhash":"0x00238FE9","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/BUILTIN/COS","markdownUrl":"https://natives.borderlinerp.com/natives/BUILTIN/COS.md","snippets":{"lua":"local retval = Cos(value)","luaInvoke":"local retval = Citizen.InvokeNative(0xD0FFB162F40A139C, value, Citizen.ResultAsFloat())","js":"const retval = Cos(value);","jsInvoke":"const retval = Citizen.invokeNative('0xD0FFB162F40A139C', value + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0xD0FFB162F40A139C, 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."]}}