# getSoundEffectParameters (Client)

> Returns the current parameters of an audio effect that is on, on a sound or a player's voice.

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

## Syntax

```lua
table|false getSoundEffectParameters(sound|player target, string effect)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `target` | `sound\|player` | A `sound`, a `dui`, or a player to change their voice in voice chat. |
| `effect` | `string` | The effect's name: `chorus`, `compressor`, `distortion`, `echo`, `flanger`, `gargle`, `i3dl2reverb`, `parameq`, `reverb` or `radio`. |

## Returns

A table of each parameter's name and value (a number, or a boolean for `panDelay`), or `false` if the target was not found.

## Example

```lua
setSoundEffectEnabled(music, "reverb", true)
for name, value in pairs(getSoundEffectParameters(music, "reverb")) do
    outputDebugString(name .. " = " .. tostring(value))
end
```

### Note

Raises an error if the effect is not on.

## See also

- [setSoundEffectParameter (Client)](https://wiki.mymp.gg/en/setSoundEffectParameter.md): Changes a parameter of an audio effect that is on, on a sound or a player's voice.
- [getSoundEffects (Client)](https://wiki.mymp.gg/en/getSoundEffects.md): Lists the audio effects of a sound or a player's voice and tells which are on.
