- Documentation
- Shared functions
- getOriginalHandling
Function
getOriginalHandling
Returns a model's factory handling straight from the game files (Definitive Edition handling.cfg), without any script changes. Works on both sides.
Syntax
table/any getOriginalHandling(int model [, string property = nil])Arguments
modelint- Vehicle model ID.
propertystring, optional = nil- Name of a single field; without it the whole table.Not in MTA:SA
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
getOriginalHandling(int modelID)Returns
A table of fields, a field value, or false for an unknown model or field.
Example
local factory = getOriginalHandling(411)
outputDebugString("Infernus: masa " .. factory.mass .. ", Vmax " .. factory.maxVelocity)
See also
getVehicleHandlingReturns a vehicle's full handling as the game uses it: factory values from handling.cfg, overridden by model settings (setModelHandling), and finally by this vehicle's changes (setVehicleHandling,setVehicleEngine). Works on both sides.getHandlingLineNameReturns the name of the handling.cfg entry a model uses, e.g. 411 →INFERNUS, 596 →POLICE_LA. New models fromengineRequestModeluse their base model's entry.