GET_HELI_MAIN_ROTOR_HEALTH
Signature
float GET_HELI_MAIN_ROTOR_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The target vehicle. |
Returns float — See the client-side [GET_HELI_MAIN_ROTOR_HEALTH](#\_0xE4CB7541F413D2C5) for the return value.
Usage
local retval = GetHeliMainRotorHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xf01e2aab, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetHeliMainRotorHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0xf01e2aab', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xf01e2aab, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.