GET_VEHICLE_ENGINE_HEALTH
Signature
float GET_VEHICLE_ENGINE_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Usage
local retval = GetVehicleEngineHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x8880038a, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehicleEngineHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0x8880038a', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x8880038a, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.