CreateClientConVar

From Garry's Mod
Revision as of 16:16, 26 February 2013 by Facepunch bot (Talk | contribs)
Jump to: navigation, search
 CreateClientConVar( )

Contents

Description

Makes a clientside-only console variable

Arguments

string name

Name of the ConVar to be created and able to be accessed.

Arguments

string or number default

Default value of the ConVar.

Arguments

boolean shouldsave

Should the ConVar be saved across sessions

Arguments

boolean userdata

Should the ConVar and its containing data be sent to the server when it has changed

Examples

Example

Creates a ConVar that does nothing and saves.

CreateClientConVar("superspeed_enabled", "0", true, false)

Output:

None.
Personal tools
Navigation