Garry's Mod Wiki

IMaterial:GetInt

  number IMaterial:GetInt( string materialInt )

Description

Returns the specified material value as a int, rounds the value if its a float, or nil if the value is not set.

Please note that certain material flags such as $model are stored in the $flags variable and cannot be directly retrieved with this function. See the full list here: Material Flags

Arguments

1 string materialInt
The name of the material integer.

Returns

1 number
The retrieved value as an integer