VehicleClient

setHydraulicSuspensionRaiseFactor

SET_HYDRAULIC_SUSPENSION_RAISE_FACTOR0x84EA99C62CB3EF0C

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

SignatureJavaScript
setHydraulicSuspensionRaiseFactor(
  vehicle: Vehicle,
  wheelId: number,
  value: number
): void
SignatureLua
setHydraulicSuspensionRaiseFactor(
  vehicle: Vehicle,
  wheelId: integer,
  value: number
)

Usage

JavaScript
setHydraulicSuspensionRaiseFactor(vehicle, wheelId, value);
Lua
setHydraulicSuspensionRaiseFactor(vehicle, wheelId, value)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
wheelIdintnumberinteger
valuefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Works only on vehicles that support hydraulics.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_HYDRAULIC_SUSPENSION_RAISE_FACTOR(Vehicle vehicle, int wheelId, float value)
Hash
0x84EA99C62CB3EF0C
Introduced
Game build 505 legacy numbering
Formerly
_SET_HYDRAULIC_STATE _SET_HYDRAULIC_WHEEL_VALUE

Open in the interactive natives reference