setHeliMainRotorHealth
SET_HELI_MAIN_ROTOR_HEALTH0x4056EA1105F5ABD7The GTA V native SET_HELI_MAIN_ROTOR_HEALTH of the VEHICLE namespace, as LS:MP client scripts call it: the global function setHeliMainRotorHealth, in JavaScript and in Lua.
setHeliMainRotorHealth(vehicle: Vehicle, health: number): voidsetHeliMainRotorHealth(vehicle: Vehicle, health: number)Usage
JavaScript
setHeliMainRotorHealth(vehicle, health);Lua
setHeliMainRotorHealth(vehicle, health)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
health | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_HELI_MAIN_ROTOR_HEALTH(Vehicle vehicle, float health)- Hash
0x4056EA1105F5ABD7- Introduced
- Game build 463 legacy numbering
- Formerly
_SET_HELI_MAIN_ROTOR_HEALTH