Garry's Mod Wiki

Tool:GetClientNumber

  number Tool:GetClientNumber( string name, number default = 0 )

Description

Attempts to grab a clientside tool ConVar's value as a number.

Arguments

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

Returns

1 number
The value of the requested ConVar.