# isVehicleWheelOnGround (Cliente)

> Indica si las ruedas de un vehículo están tocando algo.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Función Lua
- **Lado**: Cliente
- **Categoría**: Vehículos
- **URL**: https://wiki.mymp.gg/es/isVehicleWheelOnGround

## Sintaxis

```lua
bool|table isVehicleWheelOnGround(vehicle vehicle, int|string|table wheels)
```

## Parámetros

| Nombre | Tipo | Descripción |
| --- | --- | --- |
| `vehicle` | `vehicle` | El vehículo. |
| `wheels` | `int\|string\|table` | Qué ruedas: un número (0 delantera izquierda, 1 trasera izquierda, 2 delantera derecha, 3 trasera derecha, -1 todas), un nombre (`wheel_lf`, `wheel_lr`, `wheel_rf`, `wheel_rr`), un grupo (`all`, `front_wheels`, `rear_wheels`, `left_wheels`, `right_wheels`) o una tabla con varios de ellos. |

## Retorno

`true` para cada rueda que toca el suelo u otro objeto. Un único valor cuando `wheels` es un número o nombre fuera de una tabla; si no, una tabla con el valor de cada rueda, indexada por el nombre de la rueda. `false` si el vehículo no tiene alguna de las ruedas pedidas.

## Ejemplo

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    local front = isVehicleWheelOnGround(vehicle, "front_wheels")
    if front and not front.wheel_lf and not front.wheel_rf then
        outputDebugString("Empinando")
    end
end
```

### Si vienes de MTA

Además del número de rueda, acepta nombres, grupos y tablas de ruedas.

### Atención

Mientras el vehículo está fuera del rango de streaming, toda rueda da `true`.

## Ver también

- [getVehicleWheelFrictionState (Cliente)](https://wiki.mymp.gg/es/getVehicleWheelFrictionState.md): Indica cómo se agarran al suelo las ruedas de un vehículo.
- [isVehicleOnGround (Compartido)](https://wiki.mymp.gg/es/isVehicleOnGround.md): Devuelve si un vehículo está apoyado en el suelo.
