RedM Natives

GET_HELI_MAIN_ROTOR_HEALTH

Hash0xF01E2AAB
Runtime nameGetHeliMainRotorHealth
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_HELI_MAIN_ROTOR_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle

The target vehicle.

Returns float — See the client-side [GET_HELI_MAIN_ROTOR_HEALTH](#\_0xE4CB7541F413D2C5) for the return value.

Usage

Lua
local retval = GetHeliMainRotorHealth(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xf01e2aab, vehicle, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetHeliMainRotorHealth(vehicle);

// by hash
const retval = Citizen.invokeNative('0xf01e2aab', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xf01e2aab, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.