SET_CONVAR_REPLICATED
Used to replicate a server variable onto clients.
Signature
void SET_CONVAR_REPLICATED(char* varName, char* value);Parameters
| Name | Type | Description |
|---|---|---|
varName | char* | The console variable name. |
value | char* | The value to set for the given console variable. |
Returns void
Description
Used to replicate a server variable onto clients.
Usage
SetConvarReplicated(varName, value)
-- always works, by hash
Citizen.InvokeNative(0xf292858c, varName, value)JavaScript and C#
SetConvarReplicated(varName, value);
// by hash
Citizen.invokeNative('0xf292858c', varName, value);Function.Call((Hash)0xf292858c, varName, value);Examples
SetConvarReplicated('voice_useNativeAudio', 'true')Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.