# isVehicleOnGround (Shared)

> Returns whether a vehicle is resting on the ground.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Vehicles
- **URL**: https://wiki.mymp.gg/en/isVehicleOnGround

## Syntax

```lua
bool isVehicleOnGround(vehicle vehicle)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The vehicle. |

## Returns

`true` if it is on the ground, otherwise `false`.

On the client, a vehicle that is not streamed in returns `false`.

## Example

```lua
setTimer(function()
    local vehicle = getPedOccupiedVehicle(localPlayer)
    if vehicle and not isVehicleOnGround(vehicle) then
        outputDebugString("airborne")
    end
end, 500, 0)
```

## See also

- [isVehicleWheelOnGround (Client)](https://wiki.mymp.gg/en/isVehicleWheelOnGround.md): Tells whether a vehicle's wheels are touching something.
- [isPedOnGround (Shared)](https://wiki.mymp.gg/en/isPedOnGround.md): Tells whether a ped or player is on the ground.
