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

Function

getSoundEffects

ClientSound (client)Identical to MTA:SA

Returns a table of all of a sound's effects: effect name → true/false.

Syntax

table getSoundEffects(sound theSound)

Arguments

theSoundsound
The sound.

Returns

A table of effects or false.

Example

local music = playSound("audio/radio.mp3", true)
for name, on in pairs(getSoundEffects(music)) do
    if on then outputChatBox(name) end
end

See also