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

SetVehicleSirenState

Материал из RAGE MP Wiki Archive
Версия от 10:00, 12 декабря 2019; imported>Bonus (Created page with "This function toggles the siren state of a vehicle, for example police sirens. True = ON, False = OFF. {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespa...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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>