Garry's Mod Wiki


  number Tool:GetClientBool( string name, boolean default = false )


Attempts to grab a clientside tool ConVar value as a boolean.


1 string name
Name of the ConVar to retrieve. The function will automatically add the mytoolfilename_ part to it.
2 boolean default = false
The default value to return in case the lookup fails.


1 number
The value of the requested ConVar. It will be true if the value if the convar is not 0, just like ConVar:GetBool