VehicleClient

getVehicleModelAccelerationMaxMods

GET_VEHICLE_MODEL_ACCELERATION_MAX_MODS0x53409B5163D5B846

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

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

Usage

JavaScript
const value = getVehicleModelAccelerationMaxMods(modelHash);
Lua
local value = getVehicleModelAccelerationMaxMods(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.

9.8 * thrust if air vehicle, else 0.38 + drive force?

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_ACCELERATION_MAX_MODS(Hash modelHash)
Hash
0x53409B5163D5B846
Formerly
_GET_VEHICLE_MODEL_DOWN_FORCE _GET_VEHICLE_MODEL_ESTIMATED_AGILITY

Open in the interactive natives reference