VehicleClient

getVehicleModelMaxTraction

GET_VEHICLE_MODEL_MAX_TRACTION0x539DE94D44FDFD0D

The GTA V native GET_VEHICLE_MODEL_MAX_TRACTION of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleModelMaxTraction, in JavaScript and in Lua.

SignatureJavaScript
getVehicleModelMaxTraction(modelHash: Hash): number
SignatureLua
getVehicleModelMaxTraction(modelHash: Hash): number

Usage

JavaScript
const value = getVehicleModelMaxTraction(modelHash);
Lua
local value = getVehicleModelMaxTraction(modelHash)

Parameters

ParameterTypeJavaScriptLua
modelHashHashnumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns max traction of the specified vehicle model.

Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_VEHICLE_MODEL_MAX_TRACTION(Hash modelHash)
Hash
0x539DE94D44FDFD0D

Open in the interactive natives reference