OnVehicleSirenToggle

From GT-MP
Jump to: navigation, search
OnVehicleSirenToggle
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

This event is triggered when siren toggle.

Requirements

First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

public Main()
{
    API.onVehicleSirenToggle += OnVehicleSirenToggleHandler;
}

Usage example(s)

private void OnVehicleSirenToggleHandler(NetHandle entity, bool oldValue)
{
    //Code
}

References