getFakeSuspensionLoweringAmount
GET_FAKE_SUSPENSION_LOWERING_AMOUNT0x53952FD2BAA19F17The GTA V native GET_FAKE_SUSPENSION_LOWERING_AMOUNT of the VEHICLE namespace, as LS:MP client scripts call it: the global function getFakeSuspensionLoweringAmount, in JavaScript and in Lua.
getFakeSuspensionLoweringAmount(vehicle: Vehicle): numbergetFakeSuspensionLoweringAmount(vehicle: Vehicle): numberUsage
JavaScript
const value = getFakeSuspensionLoweringAmount(vehicle);Lua
local value = getFakeSuspensionLoweringAmount(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.
Gets the height of the vehicle's suspension.
The higher the value the lower the suspension. Each 0.002 corresponds with one more level lowered.
0.000 is the stock suspension.
0.008 is Ultra Suspension.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
float GET_FAKE_SUSPENSION_LOWERING_AMOUNT(Vehicle vehicle)- Hash
0x53952FD2BAA19F17- Formerly
_GET_VEHICLE_SUSPENSION_HEIGHT