VehicleClient

setPlaneEngineHealth

SET_PLANE_ENGINE_HEALTH0x2A86A0475B6A1434

The 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.

SignatureJavaScript
setPlaneEngineHealth(vehicle: Vehicle, health: number): void
SignatureLua
setPlaneEngineHealth(vehicle: Vehicle, health: number)

Usage

JavaScript
setPlaneEngineHealth(vehicle, health);
Lua
setPlaneEngineHealth(vehicle, health)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
healthfloatnumbernumber

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

Open in the interactive natives reference