Перейти к содержанию

SetVehicleSirenState

Материал из RAGE MP Wiki Archive

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


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

<syntaxhighlight lang="csharp"> NAPI.Vehicle.SetVehicleSirenState(vehicle, true); </syntaxhighlight>