Global/GetConVar

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=GetConVar
+
|Description=Gets the {{Type|ConVar}} with the specified name. This function caches the ConVar object internally.
|Parent=Global
+
|Description=Gets the ConVar with the specified name. This function caches the ConVar object internally.
+
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
Line 15: Line 13:
 
{{Ret
 
{{Ret
 
|type=ConVar
 
|type=ConVar
|desc=The ConVar object
+
|desc=The {{Type|ConVar}} object, or nil if no such {{Type|ConVar}} was found.
 
}}
 
}}

Revision as of 15:55, 2 December 2019

 GetConVar( )

Description

Gets the ConVar with the specified name. This function caches the ConVar object internally.

Arguments

string name

Name of the ConVar to get

Returns

ConVar

The ConVar object, or nil if no such ConVar was found.
Personal tools
Navigation