ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setSoundLooped

Function

setSoundLooped

ClientAudioIdentical to MTA:SA

Sets whether a sound loops. The simplest way is to set it on creation: playSound(file, true).

Syntax

bool setSoundLooped(sound theSound, bool looped)

Arguments

theSoundsound
The sound.
loopedbool
true loops.

Returns

true on success.

Example

local music = playSound("audio/menu.mp3", true)

Notes

Does not work with playSound sounds. In the current version use the looped argument of playSound.

See also