# setModelHandling (Server)

> Changes a property of a vehicle model's handling, which new vehicles of that model start with.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Server
- **Category**: Handling
- **URL**: https://wiki.mymp.gg/en/setModelHandling

## Syntax

```lua
bool setModelHandling(string model, string property [, any value = nil])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `model` | `string` | The vehicle model's name. |
| `property` | `string` | The property's name, as in `getVehicleHandling`. An unknown name raises an error. |
| `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
setModelHandling("infernus", "maxVelocity", 260)
setModelHandling("infernus", "driveType", "awd")
```

### Coming from MTA

MTA takes a model id; here the model is given by name.

### Note

Vehicles that already exist do not change. To give them the model's handling, call `setVehicleHandling(vehicle)`.

## See also

- [getModelHandling (Server)](https://wiki.mymp.gg/en/getModelHandling.md): Reads a vehicle model's handling, which new vehicles of that model start with.
- [setVehicleHandling (Server)](https://wiki.mymp.gg/en/setVehicleHandling-server.md): Changes a vehicle's handling for every player.
- [getOriginalHandling (Server)](https://wiki.mymp.gg/en/getOriginalHandling-server.md): Reads a vehicle model's original handling, as the content packs declare it, without any script's changes.
