VehicleClient

getHeliMainRotorHealth

GET_HELI_MAIN_ROTOR_HEALTH0xE4CB7541F413D2C5

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

SignatureJavaScript
getHeliMainRotorHealth(vehicle: Vehicle): number
SignatureLua
getHeliMainRotorHealth(vehicle: Vehicle): number

Usage

JavaScript
const value = getHeliMainRotorHealth(vehicle);
Lua
local value = getHeliMainRotorHealth(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

float JavaScript number, Lua number

Notes

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

Max 1000.
At 0 the main rotor will stall.

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_HELI_MAIN_ROTOR_HEALTH(Vehicle vehicle)
Hash
0xE4CB7541F413D2C5
Formerly
_GET_HELI_MAIN_ROTOR_HEALTH

Open in the interactive natives reference