# getSoundEffects (Client)

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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Sound
- **URL**: https://wiki.mymp.gg/en/getSoundEffects

## Syntax

```lua
table|false getSoundEffects(sound|player target)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `target` | `sound\|player` | A `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

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

## See also

- [setSoundEffectEnabled (Client)](https://wiki.mymp.gg/en/setSoundEffectEnabled.md): Turns an audio effect on or off on a sound or a player's voice. When turned on, the effect starts with its default parameters.
- [getSoundEffectParameters (Client)](https://wiki.mymp.gg/en/getSoundEffectParameters.md): Returns the current parameters of an audio effect that is on, on a sound or a player's voice.
