Skip to main content

Audio::playSoundFrontend

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);