getModelHandling
Server
Reads a vehicle model's handling, which new vehicles of that model start with.
table getModelHandling(string model)
Parameters
| Name | Type | Description |
|---|---|---|
| model | string | The 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.