render.MaterialOverrideByIndex
Description
Similar to render.MaterialOverride, but overrides the materials per index. For simple entities you may want to just use Entity:SetSubMaterial.
render.MaterialOverride overrides effects of this function.
Arguments
Example
Example on overwriting only one of the model's materials.
Output: 

Garry's Mod
Rust
Steamworks
Wiki Help