Audio::stopAlarm: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
 
(One intermediate revision by the same user not shown)
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
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Audio_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

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