getVehicleAcceleration
GET_VEHICLE_ACCELERATION0x5DD35C8D074E57AEThe GTA V native GET_VEHICLE_ACCELERATION of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleAcceleration, in JavaScript and in Lua.
getVehicleAcceleration(vehicle: Vehicle): numbergetVehicleAcceleration(vehicle: Vehicle): numberUsage
JavaScript
const value = getVehicleAcceleration(vehicle);Lua
local value = getVehicleAcceleration(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | 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.
static - max acceleration
Reference
- Namespace
- Vehicle VEHICLE
- In the game
float GET_VEHICLE_ACCELERATION(Vehicle vehicle)- Hash
0x5DD35C8D074E57AE