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.

This is a legacy method, and should probably not be used, see surface.SetMaterial and IMaterial for a better alternative.

Arguments

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