# CFX::SET_CONVAR_REPLICATED

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

## Signature

```c
void SET_CONVAR_REPLICATED(char* varName, char* value);
```

## Parameters

- `varName` (`char*`) — The console variable name.
- `value` (`char*`) — The value to set for the given console variable.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Used to replicate a server variable onto clients.

## Usage

### Lua

```lua
SetConvarReplicated(varName, value)

-- always available, by hash
Citizen.InvokeNative(0xf292858c, varName, value)
```

### JavaScript

```js
SetConvarReplicated(varName, value);

// by hash
Citizen.invokeNative('0xf292858c', varName, value);
```

### C#

```csharp
Function.Call((Hash)0xf292858c, varName, value);
```

## Examples

*Source: Cfx.re native reference*

```lua
SetConvarReplicated('voice_useNativeAudio', 'true')
```

*Sources: Cfx.re native reference.*
