Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...