Garry's Mod Wiki

cvars.GetConVarCallbacks

  table cvars.GetConVarCallbacks( string name, boolean createIfNotFound = false )

Description

Returns a table of the given ConVars callbacks.

Arguments

1 string name
The name of the ConVar.
2 boolean createIfNotFound = false
Whether or not to create the internal callback table for given ConVar if there isn't one yet.

This argument is internal and should not be used.

Returns

1 table
A table of the convar's callbacks, or nil if the convar doesn't exist.