Audio::playSoundFrontend: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
Line 1: Line 1:
list: pastebin.com/DCeRiaLJ<br><br>All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/0neZdsZ5
 
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.audio.playSoundFrontend(soundId, audioName, audioRef, p3);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.playSoundFrontend(ID, SoundSetName, SoundName, instant);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''soundId:''' int
*'''ID:''' <font color="red"><b>int</b></font> (<b>Put 1</b>)
*'''audioName:''' String
*'''SoundSetName:''' <font color="green"><b>String</b></font>
*'''audioRef:''' String
*'''SoundName:''' <font color="green"><b>String</b></font>
*'''p3:''' Boolean
*'''instant:''' <font color="blue"><b>Boolean</b></font>
 
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.audio.playSoundFrontend(1, "DLC_HEIST_HACKING_SNAKE_SOUNDS", "Beep_Green", true);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Audio_s_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Revision as of 17:05, 24 January 2018

Syntax

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

Required Arguments

  • ID: int (Put 1)
  • SoundSetName: String
  • SoundName: String
  • instant: Boolean

Return value

  • Undefined

Example

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

See also