# setVehicleWheelOffset (Shared)

> Moves a vehicle's wheels away from where the model places them.

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

## Syntax

```lua
bool setVehicleWheelOffset(element vehicle, int|string|table wheels, float x, y, z)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `element` | The vehicle. It can also be a parent element: every vehicle below it changes. |
| `wheels` | `int\|string\|table` | Which wheels: a number (0 front left, 1 rear left, 2 front right, 3 rear right, 4 onwards the extra wheels, -1 all), the wheel's name (`wheel_lf`, `wheel_lr`, `wheel_rf`, `wheel_rr` or an extra wheel such as `wheel_lm1`), a group (`all`, `front_wheels`, `rear_wheels`, `left_wheels`, `right_wheels`) or a table of these. |
| `x, y, z` | `float` | Offset in metres: x out from the car, y forward, z up, or a vec3. |

## Returns

`true` if the element given is a vehicle that has every wheel asked for. Also `false` when the vehicle already has 16 tuned wheels.

0, 0, 0 puts the wheel back to normal. Called on the server, the change reaches every player.

## Example

```lua
addCommandHandler("bitola", function(player)
    local vehicle = getPedOccupiedVehicle(player)
    if vehicle then
        setVehicleWheelOffset(vehicle, "rear_wheels", 0.06, 0, 0)
    end
end)
```

### Note

Non-finite values are an error.

## See also

- [getVehicleWheelOffset (Shared)](https://wiki.mymp.gg/en/getVehicleWheelOffset.md): Returns the offset of a vehicle's wheels.
- [setVehicleWheelCamber (Shared)](https://wiki.mymp.gg/en/setVehicleWheelCamber.md): Tilts a vehicle's wheels in or out (camber).
- [setVehicleWheelWidth (Shared)](https://wiki.mymp.gg/en/setVehicleWheelWidth.md): Widens or narrows a vehicle's tyres.
