ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. 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