{"hash":"0x2200AB13CBD10F4E","ns":"VEHICLE","name":"_SET_BALLOON_GO_TO_COORD","slug":"_SET_BALLOON_GO_TO_COORD","official":false,"named":true,"luaName":"SetBalloonGoToCoord","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"balloon","type":"Vehicle"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"autoPower","type":"BOOL"},{"name":"speed","type":"float"}],"summary":"Commands a hot air balloon to navigate toward a target world coordinate.","descriptions":[{"source":"alloc8or","format":"text","body":"Commands a hot air balloon to navigate toward a target world coordinate.\n\nNotes:\n- Balloon-only: gated to VEHICLE_TYPE_BALLOON.\n- Must be called every frame while travelling; if called only once, the physics/momentum can stop on the next frame.\n- autoPower controls whether the balloon applies its own movement toward the target.\n- speed acts as a speed/throttle multiplier; community testing suggests 1.0 as a safe baseline.\n- The balloon does not perform obstacle avoidance and may collide with terrain/objects on a straight route.\n- Usually paired with _SET_BALLOON_FACE_COORD so the basket faces the destination, and with _SET_BALLOON_HOVER_STATE for arrival/holding behavior.\n\nLua example: https://pastebin.com/6Ev872RE\nVideo demo: https://imgur.com/a/rMKmRfC"},{"source":"vorp","format":"text","body":"Makes the balloon go to the specified coordinates must be called every frame until it reaches destination if autoDrive is false,other wise player must drive it manually"}],"examples":[],"aliases":["_SET_BALLOON_ROUTE"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_BALLOON_GO_TO_COORD","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_BALLOON_GO_TO_COORD.md","snippets":{"lua":"SetBalloonGoToCoord(balloon, x, y, z, autoPower, speed)","luaInvoke":"Citizen.InvokeNative(0x2200AB13CBD10F4E, balloon, x, y, z, autoPower, speed)","js":"SetBalloonGoToCoord(balloon, x, y, z, autoPower, speed);","jsInvoke":"Citizen.invokeNative('0x2200AB13CBD10F4E', balloon, x + 0.0000001, y + 0.0000001, z + 0.0000001, autoPower, speed + 0.0000001);","csharp":"Function.Call((Hash)0x2200AB13CBD10F4E, balloon, x, y, z, autoPower, speed);","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.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}