# setVehicleHandling (Client)

> Changes a vehicle's handling on this client only.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Handling
- **URL**: https://wiki.mymp.gg/en/setVehicleHandling-client
- **Counterpart**: Also exists on the server, with its own implementation: [setVehicleHandling (Server)](https://wiki.mymp.gg/en/setVehicleHandling-server.md)

## Syntax

```lua
bool setVehicleHandling(vehicle vehicle [, string property = nil, any value = nil])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The vehicle. |
| `property` | `string` | The property's name, as in `getVehicleHandling`. `nil` puts every property back to the original handling. An unknown name raises an error. *(default: `nil`)* |
| `value` | `any` | The new value. `nil` puts the property back to the original handling. Of the property's type: a number, a boolean for `ABS`, a string for the names, or `{x, y, z}` (or a vector) for `centerOfMass`. A wrong type raises an error. *(default: `nil`)* |

## Returns

`true` if the change was made. `false` if the value is outside the property's limits or `property` is not a string.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    setVehicleHandling(vehicle, "tractionMultiplier", 1.2)
    setVehicleHandling(vehicle, "centerOfMass", { 0, 0, -0.3 })
end
```

### Note

The suspension properties only take effect on cars and monster trucks; other vehicles keep the original ones. When the server changes this vehicle's handling, its change replaces the one made here.

## See also

- [getVehicleHandling (Shared)](https://wiki.mymp.gg/en/getVehicleHandling.md): Reads a vehicle's handling: its mass, engine, traction, suspension and the rest of what decides how it drives.
- [getOriginalHandling (Client)](https://wiki.mymp.gg/en/getOriginalHandling-client.md): Reads a vehicle model's original handling, as the game loaded it, without any script's changes.
- [setVehicleHandling (Server)](https://wiki.mymp.gg/en/setVehicleHandling-server.md): Changes a vehicle's handling for every player.
