OnVehicleHornToggle
Внешний вид
This event is triggered when a vehicle's horn is toggled.
<syntaxhighlight lang="csharp"> [ServerEvent(Event.VehicleHornToggle)] </syntaxhighlight>
Parameters
- vehicle: parameter input should be in Vehicle type
- state: parameter input should be in bool type
Example
<syntaxhighlight lang="csharp"> [ServerEvent(Event.VehicleHornToggle)] public void OnVehicleHornToggle(Vehicle vehicle, bool state) { NAPI.Util.ConsoleOutput($"{vehicle.DisplayName} - {state}"); } </syntaxhighlight>