Garry's Mod Wiki

render.ModelMaterialOverride

  render.ModelMaterialOverride( IMaterial material )

Description

Forces all future draw operations to use a specific IMaterial.

Because this is independent of a specific Entity, it can be used to change materials on static models that are part of maps.

Arguments

1 IMaterial material
The IMaterial that will be used for all upcoming draw operations, or nil to stop overriding.