surface.GetTextureID

From Garry's Mod
Jump to: navigation, search
 surface.GetTextureID( )

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 Material

Arguments

string name/path

Name or path of the texture.

Returns

number

The texture ID
Personal tools
Navigation