M MY Multiplayer: Wiki
Side
Kind

getModelHandling

Server

Reads a vehicle model's handling, which new vehicles of that model start with.

table getModelHandling(string model)

Parameters

NameTypeDescription
modelstringThe vehicle model's name.

Returns

A table with every property, as getVehicleHandling returns it.

It starts as the original handling and changes with setModelHandling.

Example

local handling = getModelHandling("infernus")
outputDebugString("infernus top speed: " .. handling.maxVelocity)
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