Garry's Mod Wiki

render.MaterialOverrideByIndex

  render.MaterialOverrideByIndex( number index = nil, IMaterial material = nil )

Description

Similar to render.MaterialOverride, but overrides the materials per index. Similar to Entity:SetSubMaterial

render.MaterialOverride overrides effects of this function.

Arguments

1 number index = nil
The index of the material to override, in range of 0 to 31. nil will reset all overrides.
2 IMaterial material = nil
The material to override with, nil will reset the override for given index.