Exemplo n.º 1
0
 private void OnTick(object o, EventArgs eventArgs)
 {
     if (_mods.Length <= 0)
     {
         Stop();
         return;
     }
     if (!GtsLib.IsRockstarEditorActive())
     {
         return;
     }
     TimecycleModifier.Set(_mods[_timecycleModIndex], 1.0f);
     if (!Game.IsControlJustPressed(2, Control.SpecialAbilitySecondary))
     {
         return;
     }
     _timecycleModIndex = (_timecycleModIndex + 1) % _mods.Length;
 }
Exemplo n.º 2
0
 public static void SetGravityLevel(float level)
 {
     GtsLib.SetGravityLevel(level);
 }
Exemplo n.º 3
0
 public static void TerminateScript(string name)
 {
     GtsLib.GetScriptStackSize(name);
     Function.Call(Hash.TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME, name);
 }