RedM Natives

SET_CONVAR_REPLICATED

Used to replicate a server variable onto clients.

Hash0xF292858C
Runtime nameSetConvarReplicated
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

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

Parameters

NameTypeDescription
varNamechar*

The console variable name.

valuechar*

The value to set for the given console variable.

Returns void

Description

Cfx.re native reference

Used to replicate a server variable onto clients.

Usage

Lua
SetConvarReplicated(varName, value)

-- always works, by hash
Citizen.InvokeNative(0xf292858c, varName, value)
JavaScript and C#
JavaScript
SetConvarReplicated(varName, value);

// by hash
Citizen.invokeNative('0xf292858c', varName, value);
C#
Function.Call((Hash)0xf292858c, varName, value);

Examples

LUA · Cfx.re native reference
SetConvarReplicated('voice_useNativeAudio', 'true')

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.