M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
modelstringThe 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)
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