fxAddGlass
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function creates a glass particle effect.
Syntax
fxAddGlass ( )Code Examples
client
This example creates a glass particle effect at the position of the player who use /addGlass command.
function addGlassParticle(cmd,r,g,b,a,scale,count) if r and g and b then local x,y,z = getElementPosition(localPlayer) fxAddGlass(x+3,y,z,r,g,b,255,1.0,5) endendaddCommandHandler("addGlass",addGlassParticle)