Garry's Mod Wiki

IMaterial:SetInt

  IMaterial:SetInt( string materialInt, number int )

Description

Sets the specified material value to the specified int, does nothing on a type mismatch.

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

Arguments

1 string materialInt
The name of the material int.
2 number int
The new int value.