Вопрос SOS, Что в коде не так что работает криво в JS ОТК3?

Начинающий
Статус
Оффлайн
Регистрация
16 Ноя 2020
Сообщения
82
Реакции[?]
5
Поинты[?]
0
Помогите пожалуйста, прошу я незнаю как пофиксить..
Спросите что, не так ? код вроде верный всё ок...

Но при добавление Forward direction, Legit Anti-Aim сломались, в плане место расположение, в плане работает но во всех вкладках появляться: Rage,Anti-Aim ( тут должно быть ), Visuals,Misc.

Заранее спасибо за помощь


UI.AddDropdown( "test", [ "Rage", "Anti-Aim", "Visuals", "Misc" ] );

var original_aa = true;

UI.AddHotkey("Legit AA Key");

function legit_aa()
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Legit AA Key"))
{
if (original_aa)
{
restrictions_cache = UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions");
hiderealangle_cache = UI.GetValue ("Anti-Aim", "Fake angles", "Hide real angle");
yaw_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
jitter_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
pitch_cache = UI.GetValue ("Anti-Aim", "Extra", "Pitch");
original_aa = false;
}
UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", 0);
UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", true);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 0);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", 0);
}
else
{
if (!original_aa)
{
UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", restrictions_cache);
UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", hiderealangle_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_offset_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset_cache);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", pitch_cache);
original_aa = true;
}
}
}

function onDraw(){
if (UI.GetValue("Script items", "test") == 1) {
UI.SetEnabled("Script items", "Legit AA Key", true);
} else {
UI.SetEnabled("Script items", "Legit AA Key", false);
}
}

Cheat.RegisterCallback("CreateMove", "legit_aa");
Cheat.RegisterCallback("Draw", "onDraw");



UI.AddHotkey("Forward direction");

function onDraw(){
if (UI.GetValue("Script items", "test") == 1) {
UI.SetEnabled("Script items", "Forward direction", true);
} else {
UI.SetEnabled("Script items", "Forward direction", false);
}
}


function yaw() {
if (
UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Forward direction")
) {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
}
else {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0);
}
}

Cheat.RegisterCallback("Draw", "yaw");
Cheat.RegisterCallback("Draw", "onDraw");
 
Пользователь
Статус
Оффлайн
Регистрация
22 Май 2018
Сообщения
221
Реакции[?]
229
Поинты[?]
6K
JavaScript:
UI.AddDropdown( "test", [ "Rage", "Anti-Aim", "Visuals", "Misc" ] );

original_aa = true;

UI.AddHotkey("Legit AA Key");
UI.AddHotkey("Forward direction");

function legit_aa()
{
  if (UI.IsHotkeyActive("Script items", "Legit AA Key"))
  {
    if (original_aa)
    {
      restrictions_cache = UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions");
      hiderealangle_cache = UI.GetValue ("Anti-Aim", "Fake angles", "Hide real angle");
      yaw_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
      jitter_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
      pitch_cache = UI.GetValue ("Anti-Aim", "Extra", "Pitch");
      original_aa = false;
    }
    UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", 0);
    UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", true);
    UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
    UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 0);
    UI.SetValue ("Anti-Aim", "Extra", "Pitch", 0);
  }
  else
  {
    if (!original_aa)
    {
      UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", restrictions_cache);
      UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", hiderealangle_cache);
      UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_offset_cache);
      UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset_cache);
      UI.SetValue ("Anti-Aim", "Extra", "Pitch", pitch_cache);
      original_aa = true;
    }
  }
}

function onDraw()
{
  UI.SetEnabled("Script items", "Legit AA Key", UI.GetValue("test") == 1);
  UI.SetEnabled("Script items", "Forward direction", UI.GetValue("test") == 1);
  UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset",UI.IsHotkeyActive("Forward direction") ? 180 : 0);
}

Cheat.RegisterCallback("CreateMove", "legit_aa");
Cheat.RegisterCallback("Draw", "onDraw");
 
Сверху Снизу