# CFX::SET_CLIENT_CONFIG_BOOL

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

## Signature

```c
void SET_CLIENT_CONFIG_BOOL(int flagIndex, BOOL enabled);
```

## Parameters

- `flagIndex` (`int`) — The index of the configuration flag to set.
- `enabled` (`BOOL`) — Whether to enable or disable the flag.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

```cpp
enum ClientConfigFlag
{
    WeaponsNoAutoReload = 0,
	UIVisibleWhenDead = 1,
	DisableDeathAudioScene = 2,
	DisableRemoteAttachments = 3
}
```

Sets the value of a client configuration flag.
This native allows enabling or disabling specific one-time client-side features.

## Usage

### Lua

```lua
SetClientConfigBool(flagIndex, enabled)

-- always available, by hash
Citizen.InvokeNative(0xd174ef7e, flagIndex, enabled)
```

### JavaScript

```js
SetClientConfigBool(flagIndex, enabled);

// by hash
Citizen.invokeNative('0xd174ef7e', flagIndex, enabled);
```

### C#

```csharp
Function.Call((Hash)0xd174ef7e, flagIndex, enabled);
```

## See also

- [CFX::GET_CLIENT_CONFIG_BOOL](https://natives.borderlinerp.com/natives/CFX/GET_CLIENT_CONFIG_BOOL.md) — Returns whether a specific client configuration flag is currently enabled.

*Sources: Cfx.re native reference.*
