Garry's Mod Wiki


number IMaterial:GetInt( string materialInt )


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


1 string materialInt
The name of the material integer.


1 number
The retrieved value as an integer

Page Links

Special Pages



Render Time: 127ms

DB GetPage 58
Generate Html 3
SaveChanges (1) 50
Render Body 0
Render Sidebar 12