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