Garry's Mod Wiki

render.MaterialOverride

  render.MaterialOverride( IMaterial material )

Description

Sets the render material override for all next calls of Entity:DrawModel. Also overrides render.MaterialOverrideByIndex.

Arguments

1 IMaterial material
The material to use as override, use nil to disable.