Skip to content

function addEffect (client-side)

Available since version:

This function is used to add visual effect on player.
Player can have more than one active visual effect on itself.


bool addEffect(int id, string effect)


  • int id: the player id.
  • string effect: the name of the VisualFX, e.g: "SPELLFX_MAYA_GHOST".

Returns bool

true if effect was successfully added, otherwise false.