getSoundEffectParameters
Client
Returns the current parameters of an audio effect that is on, on a sound or a player's voice.
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
setSoundEffectEnabled(music, "reverb", true)
for name, value in pairs(getSoundEffectParameters(music, "reverb")) do
outputDebugString(name .. " = " .. tostring(value))
endNoteRaises an error if the effect is not on.