M MY Multiplayer: Wiki
Side
Kind

getSoundEffects

Client

Lists the audio effects of a sound or a player's voice and tells which are on.

table|false getSoundEffects(sound|player target)

Parameters

NameTypeDescription
targetsound|playerA sound, a dui, or a player to change their voice in voice chat.

Returns

A table with each effect's name as key and true or false as value, or false if the target was not found.

Example

for name, enabled in pairs(getSoundEffects(music)) do
    if enabled then
        outputDebugString(name .. " is on")
    end
end

See also