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

Vehicle::setSirenSound

Материал из RAGE MP Wiki Archive
Версия от 10:58, 16 марта 2020; imported>Katalam (Created page with "Activate siren sound on vehicle (Only works if the vehicle has a siren). ==Syntax== <syntaxhighlight lang="javascript">vehicle.setSirenSound(toggle);</syntaxhighlight> === Re...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Activate siren sound on vehicle (Only works if the vehicle has a siren).

Syntax

<syntaxhighlight lang="javascript">vehicle.setSirenSound(toggle);</syntaxhighlight>

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> mp.players.local.vehicle.setSirenSound(true) </syntaxhighlight> Make sure you use true for silence.