Garry's Mod Wiki

cvars.Bool

  boolean cvars.Bool( string cvar, boolean default = false )

Description

Retrieves console variable as a boolean.

Arguments

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

Returns

1 boolean
Retrieved value