# getVehicleWheelStates (Compartilhado)

> Devolve o estado das quatro rodas de um veículo.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Função Lua
- **Lado**: Compartilhado
- **Categoria**: Veículos
- **URL**: https://wiki.mymp.gg/pt/getVehicleWheelStates

## Sintaxe

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

## Parâmetros

| Nome | Tipo | Descrição |
| --- | --- | --- |
| `vehicle` | `vehicle` | O veículo. |

## Retorno

Quatro números, na ordem dianteira esquerda, traseira esquerda, dianteira direita e traseira direita (0 cheia, 1 furada, 2 solta do veículo, 3 desenhada mas sem colisão), ou `false` se não pôde ler.

## Exemplo

```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)
```

## Veja também

- [setVehicleWheelStates (Compartilhado)](https://wiki.mymp.gg/pt/setVehicleWheelStates.md): Muda o estado das quatro rodas de um veículo de uma vez.
- [getVehicleWheelState (Compartilhado)](https://wiki.mymp.gg/pt/getVehicleWheelState.md): Devolve o estado de uma ou mais rodas de um veículo.
