Garry's Mod Wiki

surface.SetTexture

  surface.SetTexture( number textureID )

Description

Sets the texture to be used in all upcoming draw operations using the surface library.

See surface.SetMaterial for an IMaterial alternative.

It's probably best to use the alternative mentioned above.

Arguments

1 number textureID
The ID of the texture to draw with returned by surface.GetTextureID.