_SET_BALLOON_GO_TO_COORD
Commands a hot air balloon to navigate toward a target world coordinate.
0x2200AB13CBD10F4ESetBalloonGoToCoord_SET_BALLOON_ROUTESignature
void _SET_BALLOON_GO_TO_COORD(Vehicle balloon, float x, float y, float z, BOOL autoPower, float speed);Parameters
| Name | Type | Description |
|---|---|---|
balloon | Vehicle | — |
x | float | — |
y | float | — |
z | float | — |
autoPower | BOOL | — |
speed | float | — |
Returns void
Description
Commands a hot air balloon to navigate toward a target world coordinate.
Notes:
- Balloon-only: gated to VEHICLE_TYPE_BALLOON.
- Must be called every frame while travelling; if called only once, the physics/momentum can stop on the next frame.
- autoPower controls whether the balloon applies its own movement toward the target.
- speed acts as a speed/throttle multiplier; community testing suggests 1.0 as a safe baseline.
- The balloon does not perform obstacle avoidance and may collide with terrain/objects on a straight route.
- Usually paired with _SET_BALLOON_FACE_COORD so the basket faces the destination, and with _SET_BALLOON_HOVER_STATE for arrival/holding behavior.
Lua example: https://pastebin.com/6Ev872RE
Video demo: https://imgur.com/a/rMKmRfC
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
Usage
SetBalloonGoToCoord(balloon, x, y, z, autoPower, speed)
-- always works, by hash
Citizen.InvokeNative(0x2200AB13CBD10F4E, balloon, x, y, z, autoPower, speed)JavaScript and C#
SetBalloonGoToCoord(balloon, x, y, z, autoPower, speed);
// by hash
Citizen.invokeNative('0x2200AB13CBD10F4E', balloon, x + 0.0000001, y + 0.0000001, z + 0.0000001, autoPower, speed + 0.0000001);Function.Call((Hash)0x2200AB13CBD10F4E, balloon, x, y, z, autoPower, speed);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.