OnVehicleDamage

From GTA Network Wiki
Jump to: navigation, search

OnVehicleDamage
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This event is triggered when a vehicle's health changes.

Attribute

[ServerEvent(Event.VehicleDamage)]

Required Parameters

  • Vehicle: the vehicle.
  • float: body health loss.
  • float: engine health loss.

Usage example(s)

[ServerEvent(Event.VehicleDamage)]
public void OnVehicleDamageHandler(Vehicle vehicle, float bodyHealthLoss, float engineHealthLoss)
{
    // Some code
}

Changelog

Version Description
1.0 Release.

References