Garry's Mod Wiki

render.MaterialOverride

  render.MaterialOverride( IMaterial material = nil )

Description

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

Arguments

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