/// <summary> /// Stop a screen effect. /// </summary> /// <param name="effect"></param> public static void StopScreenEffect(ScreenEffect effect) { Function.Call(Hash._STOP_SCREEN_EFFECT, effect.ToString()); }
/// <summary> /// Start a screen effect. /// </summary> /// <param name="effect"></param> public static void StartScreenEffect(ScreenEffect effect) { Function.Call(Hash._START_SCREEN_EFFECT, effect.ToString(), 0, true); }
public static void ScreenFxStop(ScreenEffect screenEffect) { ScreenFxStop(screenEffect.ToString()); }
public static void ScreenFxStart(ScreenEffect screenEffect, int duration = 0, bool looped = true, bool stopExisting = true) { ScreenFxStart(screenEffect.ToString()); }
public static void StopScreenEffect(this Client player, ScreenEffect effectName) { player.triggerEvent("CLIENT_WRAPPER", "StopScreenEffect", effectName.ToString()); }
public static void PlayScreenEffect(this Client player, ScreenEffect effectName, int duration = 5000, bool looped = false) { player.triggerEvent("CLIENT_WRAPPER", "PlayScreenEffect", effectName.ToString(), duration, looped); }