M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
modelstringThe 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")
end
Coming 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.

See also