VehicleClient

setHydraulicsControl

SET_HYDRAULICS_CONTROL0x28B18377EB6E25F6

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

SignatureJavaScript
setHydraulicsControl(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setHydraulicsControl(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setHydraulicsControl(vehicle, toggle);
Lua
setHydraulicsControl(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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.

If false, lowers hydraulics (if raised) and disables hydraulics controls. If true, raises hydraulics and enables hydraulics controls.

Only used once in each carmod script, on a car that does not have hydraulics to begin with.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_HYDRAULICS_CONTROL(Vehicle vehicle, BOOL toggle)
Hash
0x28B18377EB6E25F6
Introduced
Game build 505 legacy numbering
Formerly
_SET_HYDRAULIC_RAISED

Open in the interactive natives reference