getVehicleHydraulicsControl
Shared
Returns how far setVehicleHydraulicsControl told each wheel of a vehicle to rise.
float|false getVehicleHydraulicsControl(vehicle vehicle)
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | vehicle | The 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