ConVar/GetString

From Garry's Mod
Jump to: navigation, search
 ConVar:GetString( )

Contents

Description

Returns the current ConVar value as a string.

Returns

string

The current console variable value as a string.

Examples

Example

Will check if the gamemode is sandbox

if GetConVar("gamemode"):GetString() == "sandbox" then
    print("Gamemode is sandbox")
end

Output:

Gamemode is sandbox
Personal tools
Navigation