Вопрос Кто может помочь с jsm - dropdown

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



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

var original_aa = true;

UI.AddHotkey("Legit AA Key");

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);
}
}


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;
}
}
}


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

UI.AddHotkey("Freestanding");

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


function auto() {
if (
UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestanding")
) {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", 1);
}
else {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", 0);
}
}

Cheat.RegisterCallback("Draw", "auto");
Cheat.RegisterCallback("Draw", "onDraw");



UI.AddSliderInt(" ", 0, 0)
 
Последнее редактирование:
Сверху Снизу