Garry's Mod Wiki

surface.GetHUDTexture

  number surface.GetHUDTexture( string name )

Description

Returns the HUD icon TextureID of a texture with the specified name.

You probably want to use Material and surface.SetMaterial.

Arguments

1 string name
The name of the texture.

Returns

1 number texID
The texture ID, for use with surface.SetTexture.