Garry's Mod Wiki

CEffectData:SetSurfaceProp

  CEffectData:SetSurfaceProp( number surfaceProperties )

Description

Sets the surface property index of the effect. See util.GetSurfaceData for more details about what they are.

Internally stored as an integer, but only first 8 bits are networked, effectively limiting this function to -1-254 range. (Yes, that's not a mistake, -1 signifying an invalid value.)

Arguments

1 number surfaceProperties
The surface property index of the effect.