_SET_BALLOON_FACE_COORD
Forces a hot air balloon to rotate/yaw toward a world coordinate.
0xB42C87521D1BDD2FSetBalloonFaceCoord_SET_BALLOON_FACE_DIRECTION_THIS_FRAMESignature
void _SET_BALLOON_FACE_COORD(Vehicle balloon, float x, float y, float z);Parameters
| Name | Type | Description |
|---|---|---|
balloon | Vehicle | — |
x | float | — |
y | float | — |
z | float | — |
Returns void
Description
Forces a hot air balloon to rotate/yaw toward a world coordinate.
Notes:
- Balloon-only: gated to VEHICLE_TYPE_BALLOON.
- Used in update loops during balloon navigation so the basket keeps facing its destination instead of flying sideways or backwards.
- Must be called every frame while the heading should be maintained.
- Fits the dump order with _SET_BALLOON_GO_TO_COORD followed by _SET_BALLOON_HOVER_STATE.
Makes the balloon face the specified direction to fly towards it must be called every frame until it reaches destination
Usage
SetBalloonFaceCoord(balloon, x, y, z)
-- always works, by hash
Citizen.InvokeNative(0xB42C87521D1BDD2F, balloon, x, y, z)JavaScript and C#
SetBalloonFaceCoord(balloon, x, y, z);
// by hash
Citizen.invokeNative('0xB42C87521D1BDD2F', balloon, x + 0.0000001, y + 0.0000001, z + 0.0000001);Function.Call((Hash)0xB42C87521D1BDD2F, balloon, x, y, z);- 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.