Audio::playSoundFrontend: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
<syntaxhighlight lang="javascript">mp.game.audio.playSoundFrontend(ID, SoundName, SoundSetName, instant);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.playSoundFrontend(ID, SoundName, SoundSetName, instant);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''ID:''' <font color="red"><b>int</b></font> (<b>Put 1</b>)
*'''ID:''' <font color="red"><b>int</b></font> (<b>Put -1 for sounds played once, use GET_SOUND_ID otherwise.</b>)
*'''SoundName:''' <font color="green"><b>String</b></font>
*'''SoundSetName:''' <font color="green"><b>String</b></font>
*'''SoundSetName:''' <font color="green"><b>String</b></font>
*'''SoundName:''' <font color="green"><b>String</b></font>
*'''instant:''' <font color="blue"><b>Boolean</b></font>
*'''instant:''' <font color="blue"><b>Boolean</b></font>
<b>WARNING: use different ID may crash the client.</b>


===Return value===
===Return value===

Latest revision as of 11:01, 8 August 2020

Syntax

mp.game.audio.playSoundFrontend(ID, SoundName, SoundSetName, instant);

Required Arguments

  • ID: int (Put -1 for sounds played once, use GET_SOUND_ID otherwise.)
  • SoundName: String
  • SoundSetName: String
  • instant: Boolean

WARNING: use different ID may crash the client.

Return value

  • Undefined

Example

mp.game.audio.playSoundFrontend(-1, "Beep_Green", "DLC_HEIST_HACKING_SNAKE_SOUNDS", true);

See also