getOriginalHandling
Server
Reads a vehicle model's original handling, as the content packs declare it, without any script's changes.
Also exists on the client, 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 original = getOriginalHandling("infernus")
local current = getModelHandling("infernus")
if current.maxVelocity ~= original.maxVelocity then
outputDebugString("the infernus top speed was changed")
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.