Difference between revisions of "Audio::playSoundFrontend"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
m
 
Line 7: Line 7:
 
*'''SoundName:''' <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 23:18, 13 February 2020

Syntax

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

Required Arguments

  • ID: int (Put 1)
  • SoundSetName: String
  • SoundName: 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

Template:Audio s function c