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

OnVehicleTyreBurst

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

This event is triggered when a vehicle's tyre bursts.

<syntaxhighlight lang="csharp"> [ServerEvent(Event.VehicleTyreBurst)] </syntaxhighlight>

Parameters

  • vehicle: parameter input should be in Vehicle type
  • tyreIndex: parameter input should be in int type

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.VehicleTyreBurst)] public void OnVehicleTyreBurst(Vehicle vehicle, int tyreIndex) { NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} ({vehicle.Handle})'s tire was popped {tyreIndex}."); } </syntaxhighlight>