Перейти к содержанию

Audio::playSoundFrontend

Материал из RAGE MP Wiki Archive
Версия от 11:01, 8 августа 2020; imported>Krotter
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Syntax

<syntaxhighlight lang="javascript">mp.game.audio.playSoundFrontend(ID, SoundName, SoundSetName, instant);</syntaxhighlight>

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

<syntaxhighlight lang="javascript"> mp.game.audio.playSoundFrontend(-1, "Beep_Green", "DLC_HEIST_HACKING_SNAKE_SOUNDS", true); </syntaxhighlight>

See also