getVehicleModelAcceleration
GET_VEHICLE_MODEL_ACCELERATION0x8C044C5C84505B6AThe 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.
getVehicleModelAcceleration(modelHash: Hash): numbergetVehicleModelAcceleration(modelHash: Hash): numberUsage
JavaScript
const value = getVehicleModelAcceleration(modelHash);Lua
local value = getVehicleModelAcceleration(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 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