Add support of vehicles for server side GetEntityHealth

The title says it all. Currently GetEntityHealth only works with peds server side. However, having this feature for vehicles too is pretty important.

GetVehicleBodyHealth
GetVehicleEngineHealth
GetVehiclePetrolTankHealth

??

They return weird values on server side…

This will give you the right result:

GetVehicleBodyHealth(vehicleId) * 7.1362384635298e+44

1 Like

Incredible !!!
Thank you so much!

do note that such a workaround will end up breaking if whatever bug (care to make a proper report?) is fixed!

HassoN, you can verify and submit a PR for each of the incorrectly type’d (and by extension, the never tested) natives.