Global/CreateConVar
From Garry's Mod
(Difference between revisions)
Robotboy655 (Talk | contribs) |
(Wrong page) |
(One intermediate revision by one user not shown) |
Latest revision as of 20:10, 2 December 2019
Contents |
Description
Creates a console variable (ConVar), in general these are for things like gamemode/server settings.
Arguments
string name
Name of the convar.
Arguments
string value
Default value of the convar. Can also be a number.
Arguments
number flags=FCVAR_NONE
Flags of the convar, see FCVAR_ Enums, either as bitflag or as table.
Arguments
string helptext=""
The help text to show in the console.
Arguments
number min=nil
If set, the ConVar cannot be changed to a number lower than this value.
Arguments
number max=nil
If set, the ConVar cannot be changed to a number higher than this value.
Returns
The convar created.