Exemplo n.º 1
0
 /// <summary>
 /// Stop a screen effect.
 /// </summary>
 /// <param name="effect"></param>
 public static void StopScreenEffect(ScreenEffect effect)
 {
     Function.Call(Hash._STOP_SCREEN_EFFECT, effect.ToString());
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 public static void ScreenFxStop(ScreenEffect screenEffect)
 {
     ScreenFxStop(screenEffect.ToString());
 }
Exemplo n.º 4
0
 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);
 }