{"hash":"0x652D2EEEF1D3E62C","ns":"BUILTIN","name":"VMAG","slug":"VMAG","official":true,"named":true,"luaName":"Vmag","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.","descriptions":[{"source":"alloc8or","format":"text","body":"Calculates the magnitude of a vector."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x652D2EEEF1D3E62C","gtaJhash":"0x1FCF1ECD","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/BUILTIN/VMAG","markdownUrl":"https://natives.borderlinerp.com/natives/BUILTIN/VMAG.md","snippets":{"lua":"local retval = Vmag(x, y, z)","luaInvoke":"local retval = Citizen.InvokeNative(0x652D2EEEF1D3E62C, x, y, z, Citizen.ResultAsFloat())","js":"const retval = Vmag(x, y, z);","jsInvoke":"const retval = Citizen.invokeNative('0x652D2EEEF1D3E62C', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0x652D2EEEF1D3E62C, 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."]}}