UI.AddDropdown("Tab ",["Rage", "Anti-Aim", "Misc", "Visual"])
// вот сюда юодвавляем слайдер чекбокс или хоткей, пример:
UI.AddCheckbox("Mindamage");
UI.AddHotkey("Damage Override")
UI.AddSliderInt("Minimum damage Override", 0, 130)
UI.AddCheckbox("JumpScout/R8 Hitchance");
UI.AddSliderInt("Hitchance Scout", 1, 100);
UI.AddSliderInt("Hitchance Revolver", 1, 100);
// вот сюда юодвавляем слайдер чекбокс или хоткей
menu_setup_control = function () {
const MENU = UI.GetValue("Script items", "Tab "),
menu_rage = MENU == 0;
menu_aa = MENU == 1;
menu_misc = MENU == 2;
menu_vis = MENU == 3;
//если хотите добавить свой menuфункцию, то пишите menuсокращенное название допустим key(а в Dropdown добавляем сам элемент допустим JS keybind) после этого пишем (menuсокращенное название потом пишем ""= MENU == цифру;""
// после этого пишем UI.SetEnabled
//UI.SetEnabled("TP Dist", 50, 300, menu_название) //сюда пишем в какой раздел вы хотите добавить, так же Checkbox, slider или hotkey заменяем на SetEnabled, пример:
UI.SetEnabled("Mindamage", menu_rage)
UI.SetEnabled("Damage Override", menu_rage)
UI.SetEnabled("Minimum damage Override", menu_rage)
UI.SetEnabled("JumpScout/R8 Hitchance", menu_rage)
UI.SetEnabled("Hitchance Scout", menu_rage)
UI.SetEnabled("Hitchance Revolver", menu_rage)
}
Cheat.RegisterCallback("Draw", "menu_setup_control");
var heavy_cache = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage")
var scout_cache = UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage")
var awp_cache = UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage")
var auto_cache = UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Minimum damage")
var pistol_cache = UI.GetValue("Rage", "PISTOL", "Targeting", "Minimum damage")
var other_cache = UI.GetValue("Rage", "GENERAL", "Targeting", "Minimum damage")
function setValue(cat, value)
{
UI.SetValue("Rage", cat.toUpperCase(), "Targeting", "Minimum damage", value)
}
function damage_override()
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script Items", "Damage Override"))
{
setValue("HEAVY PISTOL", UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override"))
setValue("SCOUT", UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override"))
setValue("AWP", UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override"))
setValue("AUTOSNIPER", UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override"))
setValue("PISTOL", UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override"))
setValue("GENERAL", UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override"))
}
else
{
setValue("HEAVY PISTOL", heavy_cache)
setValue("SCOUT", scout_cache)
setValue("AWP", awp_cache)
setValue("AUTOSNIPER", auto_cache)
setValue("PISTOL", pistol_cache)
setValue("GENERAL", other_cache)
}
}
Cheat.RegisterCallback("CreateMove", "damage_override")
function w() {
if (UI.GetValue("Script items", "JumpScout/R8 Hitchance")) {
UI.SetEnabled("Script items", "Hitchance Scout", 1)
UI.SetEnabled("Script items", "Hitchance Revolver", 1)
} else {
UI.SetEnabled("Script items", "Hitchance Scout", 0)
UI.SetEnabled("Script items", "Hitchance Revolver", 0)
}
}
Cheat.RegisterCallback("Draw", "w")
var oldHitChance = UI.GetValue("Rage", "SCOUT", "Accuracy", "Hitchance");
var oldHitChance1 = UI.GetValue("Rage", "HEAVY PISTOL", "Accuracy", "Hitchance");
var isInAir = function(){
if(Global.IsKeyPressed((0x20))){
return true;
}else{
return false;
}
}
function updateValues(){
if(isInAir()){
var Hitchance = UI.GetValue("Script items", "Hitchance Scout");
var Hitchance1 = UI.GetValue("Script items", "Hitchance Revolver");
UI.SetValue("Rage", "SCOUT", "Accuracy", "Hitchance", Hitchance);
UI.SetValue("Rage", "HEAVY PISTOL", "Accuracy", "Hitchance", Hitchance1);
}else{
UI.SetValue("Rage", "SCOUT", "Accuracy", "Hitchance", oldHitChance);
UI.SetValue("Rage", "HEAVY PISTOL", "Accuracy", "Hitchance", oldHitChance1);
}
}
Global.RegisterCallback("CreateMove", "updateValues");