Garry's Mod Wiki

cvars.String

  string cvars.String( string cvar, any default = nil )

Description

Retrieves console variable as a string.

Arguments

1 string cvar
Name of console variable
2 any default = nil
The value to return if the console variable does not exist

Returns

1 string
Retrieved value