Перейти к содержанию

GetVehicleHealth

Материал из RAGE MP Wiki Archive

Returns the vehicle's health.


float NAPI.Vehicle.GetVehicleHealth(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the health in float type.

Example

<syntaxhighlight lang="csharp"> float vehicleHealth = NAPI.Vehicle.GetVehicleHealth(vehicle); </syntaxhighlight>