Garry's Mod Wiki

Revision Difference

surface.GetTextureID#512020

<function name="GetTextureID" parent="surface" type="libraryfunc">⤶ <description>⤶ Returns the texture id of the material with the given name/path.⤶ ⤶ <note>This function will not work with .png or .jpg images. For that, see <page>Global.Material</page></note>⤶ </description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="name/path" type="string">Name or path of the texture.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The texture ID</ret>⤶ </rets>⤶ </function>⤶ ⤶