# CFX::SET_AUDIO_SUBMIX_EFFECT_RADIO_FX

- **Hash:** `0xAAA94D53`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetAudioSubmixEffectRadioFx`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described with examples
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_AUDIO_SUBMIX_EFFECT_RADIO_FX

## Signature

```c
void SET_AUDIO_SUBMIX_EFFECT_RADIO_FX(int submixId, int effectSlot);
```

## Parameters

- `submixId` (`int`) — The submix.
- `effectSlot` (`int`) — The effect slot for the submix.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Assigns a RadioFX effect to a submix effect slot.

The parameter values for this effect are as follows (backticks are used to represent hashes):

| Index | Type | Description |
|-|-|-|
| \`enabled\` | int | Enables or disables RadioFX on this DSP. |
| \`default\` | int | Sets default parameters for the RadioFX DSP and enables it. |
| \`freq_low\` | float |  |
| \`freq_hi\` | float |  |
| \`fudge\` | float |  |
| \`rm_mod_freq\` | float |  |
| \`rm_mix\` | float |  |
| \`o_freq_lo\` | float |  |
| \`o_freq_hi\` | float |  |

## Usage

### Lua

```lua
SetAudioSubmixEffectRadioFx(submixId, effectSlot)

-- always available, by hash
Citizen.InvokeNative(0xaaa94d53, submixId, effectSlot)
```

### JavaScript

```js
SetAudioSubmixEffectRadioFx(submixId, effectSlot);

// by hash
Citizen.invokeNative('0xaaa94d53', submixId, effectSlot);
```

### C#

```csharp
Function.Call((Hash)0xaaa94d53, submixId, effectSlot);
```

## Examples

*Source: Cfx.re native reference*

```lua
-- we want to change the master output
local submix = 0

-- add a RadioFX effect to slot 0
SetAudioSubmixEffectRadioFx(submix, 0)

-- set the default values
SetAudioSubmixEffectParamInt(submix, 0, `default`, 1)
```

*Sources: Cfx.re native reference.*
