Garry's Mod Wiki

surface.GetTextureID

surface.GetTextureID

  number surface.GetTextureID( string name/path )

Description

Returns the texture id of the material with the given name/path.

This function will not work with .png or .jpg images. For that, see Material

Arguments

1 string name/path
Name or path of the texture.

Returns

1 number
The texture ID

Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7