Garry's Mod Wiki

ConVar:GetInt

  number ConVar:GetInt()

Description

Attempts to convert the ConVar value to a integer.

Returns

1 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 )