# CFX::SET_AUDIO_SUBMIX_EFFECT_PARAM_FLOAT

- **Hash:** `0x9A209B3C`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetAudioSubmixEffectParamFloat`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_AUDIO_SUBMIX_EFFECT_PARAM_FLOAT

## Signature

```c
void SET_AUDIO_SUBMIX_EFFECT_PARAM_FLOAT(int submixId, int effectSlot, int paramIndex, float paramValue);
```

## Parameters

- `submixId` (`int`) — The submix.
- `effectSlot` (`int`) — The effect slot for the submix. It is expected that the effect is set in this slot beforehand.
- `paramIndex` (`int`) — The parameter index for the effect.
- `paramValue` (`float`) — The parameter value to set.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Sets a floating-point parameter for a submix effect.

## Usage

### Lua

```lua
SetAudioSubmixEffectParamFloat(submixId, effectSlot, paramIndex, paramValue)

-- always available, by hash
Citizen.InvokeNative(0x9a209b3c, submixId, effectSlot, paramIndex, paramValue)
```

### JavaScript

```js
SetAudioSubmixEffectParamFloat(submixId, effectSlot, paramIndex, paramValue);

// by hash
Citizen.invokeNative('0x9a209b3c', submixId, effectSlot, paramIndex, paramValue + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x9a209b3c, submixId, effectSlot, paramIndex, paramValue);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: Cfx.re native reference.*
