getOriginalHandling
Client
Reads a vehicle model's original handling, as the game loaded it, without any script's changes.
Also exists on the server, with its own implementation: getOriginalHandling
table getOriginalHandling(string model)
Parameters
| Name | Type | Description |
|---|---|---|
| model | string | The vehicle model's name. |
Returns
A table with every property, as getVehicleHandling returns it.
Example
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
local original = getOriginalHandling("infernus")
setVehicleHandling(vehicle, "mass", original.mass * 2)
endComing from MTAMTA takes a model id; here the model is given by name.
NoteA name that is not a vehicle model's raises an error.