surface.GetTextureID
Description
Returns the texture id of the material with the given name/path, for use with surface.SetTexture.
Opposite version of this function is surface.GetTextureNameByID.
This function will not work with .png or .jpg images. For that, see Material. You will probably want to use it regardless.
Arguments
1 string name/path
Name or path of the texture. The path must be to a
.vmt
file (a material), not to .vtf
(a texture)!Returns
Page views: 28,025
Updated: Last Week
Updated: Last Week