_GET_BALLOON_OBJECT_FROM_VEHICLE
Returns the balloon OBJECT entity attached to a hot air balloon vehicle.
0x0BA4250D20007C2EGetBalloonObjectFromVehicleSignature
Entity _GET_BALLOON_OBJECT_FROM_VEHICLE(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns Entity
Description
Returns the balloon OBJECT entity attached to a hot air balloon vehicle.
Returns 0 if:
- vehicle is not a hot air balloon type, or
- the balloon object is not present.Notes:
- Returned handle is typically an OBJECT (not a ped/vehicle).
- Always validate with ENTITY::DOES_ENTITY_EXIST before use.
- Example image: https://imgur.com/a/YWDUJ56Returns the balloon object attached to a hot air balloon vehicle.
If the input vehicle is a hot air balloon, the native returns the object entity
that represents the balloon itself (the inflated top part).
If the vehicle is not balloon-type or the balloon object does not exist,the function returns 0.
Always validate the returned handle with ENTITY::DOES_ENTITY_EXIST.
Notes:
- Only useful for hot air balloon vehicles.
- The returned handle is typically an OBJECT, not a PED or VEHICLE.
Usage
local retval = GetBalloonObjectFromVehicle(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0BA4250D20007C2E, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetBalloonObjectFromVehicle(vehicle);
// by hash
const retval = Citizen.invokeNative('0x0BA4250D20007C2E', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x0BA4250D20007C2E, vehicle);- 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.