Garry's Mod Wiki

render.MaterialOverrideByIndex

  render.MaterialOverrideByIndex( number index, IMaterial material )

Description

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

render.MaterialOverride overrides effects of this function.

Arguments

1 number index
Starts with 0, the index of the material to override
2 IMaterial material
The material to override with