Skip to main content

SetVehicleSirenState

This function toggles the siren state of a vehicle, for example police sirens. True = ON, False = OFF.

C#​

void NAPI.Vehicle.SetVehicleSirenState(NetHandle vehicle, bool state);

Parameters​

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

Example​

NAPI.Vehicle.SetVehicleSirenState(vehicle, true);