# getVehicleWheelStates (Shared)

> Returns the state of a vehicle's four wheels.

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

## Syntax

```lua
int|false getVehicleWheelStates(vehicle vehicle)
```

## Parameters

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

## Returns

Four numbers, in the order front left, rear left, front right and rear right (0 inflated, 1 flat, 2 fallen off, 3 drawn but without collision), or `false` if they could not be read.

## Example

```lua
addCommandHandler("rodas", function(player)
    local vehicle = getPedOccupiedVehicle(player)
    if not vehicle then return end
    local frontLeft, rearLeft, frontRight, rearRight = getVehicleWheelStates(vehicle)
    outputDebugString(frontLeft .. " " .. rearLeft .. " " .. frontRight .. " " .. rearRight)
end)
```

## See also

- [setVehicleWheelStates (Shared)](https://wiki.mymp.gg/en/setVehicleWheelStates.md): Changes the state of a vehicle's four wheels at once.
- [getVehicleWheelState (Shared)](https://wiki.mymp.gg/en/getVehicleWheelState.md): Returns the state of one or more wheels of a vehicle.
