CreateClientConVar
ConVar CreateClientConVar( string name, string default, boolean shouldsave = true, boolean userinfo = false, string helptext = "", number min = nil, number max = nil )
Description
Makes a clientside-only console variable
This function is a wrapper of CreateConVar, with the difference being that FCVAR_ARCHIVE and FCVAR_USERINFO are added automatically when shouldsave and userinfo are true, respectively.
Although this function is shared, it should only be used clientside.
Arguments
1 string name
Name of the ConVar to be created and able to be accessed.
This cannot be a name of existing console command or console variable. It will silently fail if it is.
4 boolean userinfo = false
Should the ConVar and its containing data be sent to the server when it has changed. This makes the convar accessible from server using Player:GetInfoNum and similar functions.
Returns
Example
Creates a ConVar that does nothing and saves.
Page views: 66,081
Updated: A Long Time Ago
Updated: A Long Time Ago