OnVehicleSirenToggle

From RAGE Multiplayer Wiki

This event is triggered when a vehicle's siren is toggled.


C# Syntax

[ServerEvent(Event.VehicleSirenToggle)]

Parameters

  • vehicle: parameter input should be in Vehicle type
  • state: parameter input should be in bool type

Example

[ServerEvent(Event.VehicleSirenToggle)]
public void OnVehicleSirenToggle(Vehicle vehicle, bool state)
{
	NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} - {state}"); 
}