Audio::stopAlarm: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
 
Line 1: Line 1:
Example:<br><br>This will stop the alarm at Fort Zancudo.<br><br>AUDIO::STOP_ALARM('PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS', 1);<br><br>First parameter (char) is the name of the alarm.<br>Second parameter (bool) has to be true (1) to have any effect.<br><br>~Zerovv
Example:<br><br>This will stop the alarm at Fort Zancudo.<br><br>AUDIO::STOP_ALARM('PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS', 1);<br><br>First parameter (char) is the name of the alarm.<br>Second parameter (bool) has to be true (1) to have any effect.<br><br>~Zerovv
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.stopAlarm(alarmName, toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.stopAlarm(alarmName, toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''alarmName:''' String
*'''alarmName:''' String

Latest revision as of 21:04, 6 May 2017

Example:

This will stop the alarm at Fort Zancudo.

AUDIO::STOP_ALARM('PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS', 1);

First parameter (char) is the name of the alarm.
Second parameter (bool) has to be true (1) to have any effect.

~Zerovv

Syntax

mp.game.audio.stopAlarm(alarmName, toggle);

Required Arguments

  • alarmName: String
  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also