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

OnVehicleTyreBurst

Материал из RAGE MP Wiki Archive
Версия от 13:15, 28 февраля 2020; imported>Aurio (Formatting)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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>