setPlaneEngineHealth
SET_PLANE_ENGINE_HEALTH0x2A86A0475B6A1434The GTA V native SET_PLANE_ENGINE_HEALTH of the VEHICLE namespace, as LS:MP client scripts call it: the global function setPlaneEngineHealth, in JavaScript and in Lua.
setPlaneEngineHealth(vehicle: Vehicle, health: number): voidsetPlaneEngineHealth(vehicle: Vehicle, health: number)Usage
JavaScript
setPlaneEngineHealth(vehicle, health);Lua
setPlaneEngineHealth(vehicle, health)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
health | float | number | number |
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.
Works just like setVehicleEngineHealth, but only for planes.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_PLANE_ENGINE_HEALTH(Vehicle vehicle, float health)- Hash
0x2A86A0475B6A1434- Introduced
- Game build 1103 legacy numbering
- Formerly
_SET_PLANE_ENGINE_HEALTH