GET_VEHICLE_ENGINE_HEALTH
Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.
Hash
0x90DBFFAC43B22081Runtime name
GetVehicleEngineHealthNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xC45D23BAF168AAB8Signature
float GET_VEHICLE_ENGINE_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Description
Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.
Minimum: -4000
Maximum: 1000
-4000: Engine is destroyed
0 and below: Engine catches fire and health rapidly declines
300: Engine is smoking and losing functionality
1000: Engine is perfect
Usage
local retval = GetVehicleEngineHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x90DBFFAC43B22081, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehicleEngineHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0x90DBFFAC43B22081', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x90DBFFAC43B22081, vehicle);See also
SET_VEHICLE_ENGINE_HEALTH1000 is max health Begins leaking gas at around 650 health -999.90002441406 appears to be minimum health, although nothing special occurs <- false statement -4000: Engine is destroyed 0 and below: Engine catches fire and health rapidly d…
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.