{"hash":"0xA8CEACB4F35AE058","ns":"BUILTIN","name":"VMAG2","slug":"VMAG2","official":true,"named":true,"luaName":"Vmag2","game":"rdr3","apiset":"client","returnType":"float","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"Calculates the magnitude of a vector but does not perform Sqrt operations.","descriptions":[{"source":"alloc8or","format":"text","body":"Calculates the magnitude of a vector but does not perform Sqrt operations. (Its way faster)"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xA8CEACB4F35AE058","gtaJhash":"0xE796E629","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/BUILTIN/VMAG2","markdownUrl":"https://natives.borderlinerp.com/natives/BUILTIN/VMAG2.md","snippets":{"lua":"local retval = Vmag2(x, y, z)","luaInvoke":"local retval = Citizen.InvokeNative(0xA8CEACB4F35AE058, x, y, z, Citizen.ResultAsFloat())","js":"const retval = Vmag2(x, y, z);","jsInvoke":"const retval = Citizen.invokeNative('0xA8CEACB4F35AE058', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0xA8CEACB4F35AE058, x, y, z);","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."]}}