VehicleClient

getVehicleAcceleration

GET_VEHICLE_ACCELERATION0x5DD35C8D074E57AE

The 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.

SignatureJavaScript
getVehicleAcceleration(vehicle: Vehicle): number
SignatureLua
getVehicleAcceleration(vehicle: Vehicle): number

Usage

JavaScript
const value = getVehicleAcceleration(vehicle);
Lua
local value = getVehicleAcceleration(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

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.

static - max acceleration

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_VEHICLE_ACCELERATION(Vehicle vehicle)
Hash
0x5DD35C8D074E57AE

Open in the interactive natives reference