M MY Multiplayer: Wiki
Side
Kind

getVehicleHydraulicsControl

Shared

Returns how far setVehicleHydraulicsControl told each wheel of a vehicle to rise.

float|false getVehicleHydraulicsControl(vehicle vehicle)

Parameters

NameTypeDescription
vehiclevehicleThe vehicle.

Returns

Four values from 0 to 1: front left, rear left, front right and rear right. false if the element is not a vehicle.

Example

local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    local frontLeft, rearLeft, frontRight, rearRight = getVehicleHydraulicsControl(vehicle)
    outputDebugString(frontLeft .. " " .. rearLeft .. " " .. frontRight .. " " .. rearRight)
end

See also