SetVehicleSirenState
This function toggles the siren state of a vehicle, for example police sirens. True = ON, False = OFF.
C# Syntax
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);