{"hash":"0x2FAC235A6062F14A","ns":"PATH","name":"GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION","slug":"GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION","official":true,"named":true,"luaName":"GetNthClosestVehicleNodeFavourDirection","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"desiredX","type":"float"},{"name":"desiredY","type":"float"},{"name":"desiredZ","type":"float"},{"name":"nthClosest","type":"int"},{"name":"outPosition","type":"Vector3*"},{"name":"outHeading","type":"float*"},{"name":"nodetype","type":"int"},{"name":"p10","type":"Any"},{"name":"p11","type":"Any"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x45905BE8654AE067","gtaJhash":"0x928A4DEC","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PATH/GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION","markdownUrl":"https://natives.borderlinerp.com/natives/PATH/GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION.md","snippets":{"lua":"local retval, outPosition, outHeading = GetNthClosestVehicleNodeFavourDirection(x, y, z, desiredX, desiredY, desiredZ, nthClosest, nodetype, p10, p11)","luaInvoke":"local retval, outPosition, outHeading = Citizen.InvokeNative(0x2FAC235A6062F14A, x, y, z, desiredX, desiredY, desiredZ, nthClosest, Citizen.PointerValueVector(), Citizen.PointerValueFloat(), nodetype, p10, p11, Citizen.ReturnResultAnyway())","js":"const [retval, outPosition, outHeading] = GetNthClosestVehicleNodeFavourDirection(x, y, z, desiredX, desiredY, desiredZ, nthClosest, nodetype, p10, p11);","jsInvoke":"const [retval, outPosition, outHeading] = Citizen.invokeNative('0x2FAC235A6062F14A', x + 0.0000001, y + 0.0000001, z + 0.0000001, desiredX + 0.0000001, desiredY + 0.0000001, desiredZ + 0.0000001, nthClosest, Citizen.pointerValueVector(), Citizen.pointerValueFloat(), nodetype, p10, p11, Citizen.returnResultAnyway());","csharp":"var outPosition = new OutputArgument();\nvar outHeading = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x2FAC235A6062F14A, x, y, z, desiredX, desiredY, desiredZ, nthClosest, outPosition, outHeading, nodetype, p10, p11);\n// outPosition.GetResult<Vector3>()\n// outHeading.GetResult<float>()","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."]}}