{"hash":"0x0BA4250D20007C2E","ns":"VEHICLE","name":"_GET_BALLOON_OBJECT_FROM_VEHICLE","slug":"_GET_BALLOON_OBJECT_FROM_VEHICLE","official":false,"named":true,"luaName":"GetBalloonObjectFromVehicle","game":"rdr3","apiset":"client","returnType":"Entity","params":[{"name":"vehicle","type":"Vehicle"}],"summary":"Returns the balloon OBJECT entity attached to a hot air balloon vehicle.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the balloon OBJECT entity attached to a hot air balloon vehicle.\n\nReturns 0 if:\n\t- vehicle is not a hot air balloon type, or\n\t- the balloon object is not present.\n\nNotes:\n\t- Returned handle is typically an OBJECT (not a ped/vehicle).\n\t- Always validate with ENTITY::DOES_ENTITY_EXIST before use.\n\t- Example image: https://imgur.com/a/YWDUJ56"},{"source":"vorp","format":"text","body":"Returns the balloon object attached to a hot air balloon vehicle. \n\nIf the input vehicle is a hot air balloon, the native returns the object entity\nthat represents the balloon itself (the inflated top part). \nIf the vehicle is not balloon-type or the balloon object does not exist,the function returns 0. \nAlways validate the returned handle with ENTITY::DOES_ENTITY_EXIST.\nNotes:\n- Only useful for hot air balloon vehicles.\n- The returned handle is typically an OBJECT, not a PED or VEHICLE."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_BALLOON_OBJECT_FROM_VEHICLE","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_BALLOON_OBJECT_FROM_VEHICLE.md","snippets":{"lua":"local retval = GetBalloonObjectFromVehicle(vehicle)","luaInvoke":"local retval = Citizen.InvokeNative(0x0BA4250D20007C2E, vehicle, Citizen.ResultAsInteger())","js":"const retval = GetBalloonObjectFromVehicle(vehicle);","jsInvoke":"const retval = Citizen.invokeNative('0x0BA4250D20007C2E', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x0BA4250D20007C2E, vehicle);","notes":["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."]}}