Garry's Mod Wiki

CEffectData:SetMaterialIndex

  CEffectData:SetMaterialIndex( number materialIndex )

Description

Sets the material index of the effect.

Internally stored as an integer, but only first 12 bits are networked, effectively limiting this function to 0-4095 range.

Arguments

1 number materialIndex
The material index of the effect.