getOriginalHandling | Multi Theft Auto: Wiki Skip to content

getOriginalHandling

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns a table of the original vehicle handling. Use getVehicleHandling if you wish to get the current handling of a vehicle, or getModelHandling for a specific vehicle model.

Syntax

table getOriginalHandling ( int modelID )
Required Arguments
  • modelID: The vehicle ID you wish to get the original handling from.

Returns

  • table: value

Returns a table containing all the handling data, false otherwise. Here a list of valid table properties and what they return:

Code Examples

shared

This example creates a new function called getVehicleOriginalProperty, which simulates the previous syntax of this function.

function getVehicleOriginalProperty( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then -- Make sure there's a valid vehicle and a property string
local modelID = getElementModel ( element )
local handlingTable = getOriginalHandling ( modelID ) -- Get the handling as table and save as handlingTable
local value = handlingTable[property] -- Get the value from the table
if value then -- If there's a value (valid property)
return value -- Return it
end
end
return false -- Not an element, not a vehicle or no valid property string. Return failure
end

See Also

Vehicle Functions