ConVar/GetInt

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

Description

Attempts to convert the ConVar value to a integer.

Returns

number

The integer value of the console variable.
If it fails to convert to an integer, it will return 0.

All float/decimal values will be rounded down. ( With math.floor )
Personal tools
Navigation