getVehicleModelMaxTraction
GET_VEHICLE_MODEL_MAX_TRACTION0x539DE94D44FDFD0DThe 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.
getVehicleModelMaxTraction(modelHash: Hash): numbergetVehicleModelMaxTraction(modelHash: Hash): numberUsage
JavaScript
const value = getVehicleModelMaxTraction(modelHash);Lua
local value = getVehicleModelMaxTraction(modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
modelHash | Hash | number | integer |
Returns
float JavaScript number, Lua numberNotes
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