{"hash":"0x240A18690AE96513","ns":"PATH","name":"GET_CLOSEST_VEHICLE_NODE","slug":"GET_CLOSEST_VEHICLE_NODE","official":true,"named":true,"luaName":"GetClosestVehicleNode","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"outPosition","type":"Vector3*"},{"name":"nodeType","type":"int"},{"name":"p5","type":"float"},{"name":"p6","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x240A18690AE96513","gtaJhash":"0x6F5F1E6C","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PATH/GET_CLOSEST_VEHICLE_NODE","markdownUrl":"https://natives.borderlinerp.com/natives/PATH/GET_CLOSEST_VEHICLE_NODE.md","snippets":{"lua":"local retval, outPosition = GetClosestVehicleNode(x, y, z, nodeType, p5, p6)","luaInvoke":"local retval, outPosition = Citizen.InvokeNative(0x240A18690AE96513, x, y, z, Citizen.PointerValueVector(), nodeType, p5, p6, Citizen.ReturnResultAnyway())","js":"const [retval, outPosition] = GetClosestVehicleNode(x, y, z, nodeType, p5, p6);","jsInvoke":"const [retval, outPosition] = Citizen.invokeNative('0x240A18690AE96513', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.pointerValueVector(), nodeType, p5 + 0.0000001, p6 + 0.0000001, Citizen.returnResultAnyway());","csharp":"var outPosition = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x240A18690AE96513, x, y, z, outPosition, nodeType, p5, p6);\n// outPosition.GetResult<Vector3>()","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.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order."]}}