# AUDIO::SET_AUDIO_FLAG

- **Hash:** `0xB9EFD5C25018725A`
- **Namespace:** AUDIO
- **Runtime name (Lua/JS):** `SetAudioFlag`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/AUDIO/SET_AUDIO_FLAG

## Signature

```c
void SET_AUDIO_FLAG(const char* flagName, BOOL toggle);
```

## Parameters

- `flagName` (`const char*`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Audio flags can be found here: https://pastebin.com/40qPV6EJ
https://github.com/femga/rdr3_discoveries/tree/master/audio/audio_flags

## Usage

### Lua

```lua
SetAudioFlag(flagName, toggle)

-- always available, by hash
Citizen.InvokeNative(0xB9EFD5C25018725A, flagName, toggle)
```

### JavaScript

```js
SetAudioFlag(flagName, toggle);

// by hash
Citizen.invokeNative('0xB9EFD5C25018725A', flagName, toggle);
```

### C#

```csharp
Function.Call((Hash)0xB9EFD5C25018725A, flagName, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
