OnVehicleHornToggle
This event is triggered when a vehicle's horn is toggled.
C# Syntax
[ServerEvent(Event.VehicleHornToggle)]
Parameters
- vehicle: parameter input should be in Vehicle type
- state: parameter input should be in bool type
Example
[ServerEvent(Event.VehicleHornToggle)]
public void OnVehicleHornToggle(Vehicle vehicle, bool state)
{
NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} - {state}");
}