VehicleClient

getVehicleModelAcceleration

GET_VEHICLE_MODEL_ACCELERATION0x8C044C5C84505B6A

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

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

Usage

JavaScript
const value = getVehicleModelAcceleration(modelHash);
Lua
local value = getVehicleModelAcceleration(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 the acceleration of the specified 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_ACCELERATION(Hash modelHash)
Hash
0x8C044C5C84505B6A

Open in the interactive natives reference