GET_VEHICLE_BODY_HEALTH
Max 1000, min 0. Vehicle does not necessarily explode or become undrivable at 0.
Hash
0x42113B857E33C16ERuntime name
GetVehicleBodyHealthNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF271147EB7B40F12Signature
float GET_VEHICLE_BODY_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Description
Seems related to vehicle health, like the one in IV.
Max 1000, min 0.
Vehicle does not necessarily explode or become undrivable at 0.
Usage
local retval = GetVehicleBodyHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x42113B857E33C16E, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehicleBodyHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0x42113B857E33C16E', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x42113B857E33C16E, vehicle);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.