JS-скрипт Меню JS на otc3

Начинающий
Статус
Оффлайн
Регистрация
20 Июл 2020
Сообщения
175
Реакции[?]
9
Поинты[?]
0
ДЛИННЕЕ: Блять я не знаю как сделать менюшку JS как там у всяких РЕЗОЛЬВЕРОВ и некоторых JS-ок есть менюшка типа аддона , но это сама JS!
КОРОЧЕ: Как сделать менюшку для JS на в3 кряк?
 
Начинающий
Статус
Оффлайн
Регистрация
5 Ноя 2020
Сообщения
124
Реакции[?]
27
Поинты[?]
0
Начинающий
Статус
Оффлайн
Регистрация
20 Июл 2020
Сообщения
175
Реакции[?]
9
Поинты[?]
0
Я много кстати умею DropDown , AddLabel и т.д. , а менюшки нет
Ну ок я просто поинтересовался.
 
Пользователь
Статус
Оффлайн
Регистрация
25 Сен 2017
Сообщения
216
Реакции[?]
50
Поинты[?]
0
взял с форума вантапа, под кряк пофиксишь, почитаешь, логику поймешь
JavaScript:
const style = {
    // fonts
    title_font: "segoeuib",
    main_font: "segoeui",
    title_font_size: 15,
    main_font_size: 14,
    // colors
    window_bg_col: [27, 27, 27, 255],
    window_border_col: [70, 70, 70, 255],
    window_primary_col: [210, 0, 20, 255],
    frame_bg_col: [60, 60, 60, 255],
    frame_border_col: [40, 40, 40, 255],
    font_col: [255, 255, 255, 255],
    font_selected_col: [255, 255, 255, 255],
    font_hover_col: [255, 255, 255, 255],
    font_unselected_col: [255, 255, 255, 120],
    element_bg_col: [70, 70, 70, 255],
    element_bg_hovered_col: [100, 100, 100, 255],
    element_extra_col: [255, 255, 255, 255],
    // options
    opt_tooltips: true,
    opt_menu_rainbow_bg: true
};
const font = 0;
const globaltime = Globals.Realtime();
const sliding = false;
const num = 0.00;
function get_mouse() {
    const mouse = Input.GetCursorPosition();
    return {
        x: mouse[0],
        y: mouse[1]
    };
}
function inbox(x, y, x2, y2) {
    const mouse = get_mouse();
    if (mouse.x > x && mouse.x < x2 && mouse.y > y && mouse.y < y2)
        return true;
}
function get_tsize(text) {
    if (font == 0) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    const size = Render.TextSize(text, font);
    return {
        x: size[0],
        y: size[1]
    };
}
function create_string(x, y, aligned, text, color, isTitle) {
    if (font == 0 || font == Render.AddFont(style.title_font, style.title_font_size, 500)) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    if (isTitle) {
        font = Render.AddFont(style.title_font, style.title_font_size, 500);
    }
    Render.String(x, y, aligned, text, color, font);
}
function begin_menu(title, x, y, width, height) {
    update_variables();
    Render.FilledRect(x, y, width, height, style.window_bg_col);
    Render.FilledRect(x, y, width, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y - 2, width - 2, 2, style.window_primary_col);
    Render.FilledRect(x + 2, y - 3, width - 4, 1, style.window_primary_col);
    Render.FilledRect(x + 4, y - 4, width - 8, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y + height, width - 2, 2, style.window_bg_col);
    Render.FilledRect(x + 2, y + height, width - 4, 3, style.window_bg_col);
    Render.FilledRect(x + 4, y + height, width - 8, 4, style.window_bg_col);
    Render.Line(x, y + 65, x + width, y + 65, style.window_border_col);
    Render.Line(x + 140, y + 65, x + 140, y + height + 2, style.window_border_col);
    create_string(x + 25, y + 20, 0, title, style.font_col, true);
}
function create_tab(title, x, y, object) {
    if (!object) {
        create_string(x, y, 0, title, style.font_unselected_col);
        create_string(x, y, 0, title, style.font_unselected_col);
    } else {
        create_string(x, y, 0, title, style.font_selected_col);
        create_string(x, y, 0, title, style.font_selected_col);
    }
    const tabSize = get_tsize(title);
    if (inbox(x, y, x + tabSize.x, y + tabSize.y + 4)) {
        create_string(x, y, 0, title, style.font_hover_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    return object;
}
function create_checkbox(title, x, y, object, tooltip) {
    Render.FilledRect(x, y - 1, 11, 13, style.element_bg_col);
    Render.FilledRect(x - 1, y, 13, 11, style.element_bg_col);
    create_string(x + 18, y - 6, 0, title, style.font_col);
    if (inbox(x - 1, y - 1, x + 24 + get_tsize(title).x, y + 12)) {
        Render.FilledRect(x, y - 1, 11, 13, style.element_bg_hovered_col);
        Render.FilledRect(x - 1, y, 13, 11, style.element_bg_hovered_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    if (object) {
        Render.Line(x + 2, y + 5, x + 4, y + 8, style.element_extra_col);
        Render.Line(x + 4, y + 8, x + 8, y + 2, style.element_extra_col);
    }
    return object;
}
function create_slider(title, x, y, max, value) {
    const min = 0;
    const mouse = get_mouse();
    create_string(x, y - 10, 0, title, style.font_col);
    const useable_value = value / max * 350;
    Render.FilledRect(x, y + 13, 350, 5, style.element_bg_col);
    Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_col);
    if (inbox(x, y + 10, x + 350, y + 23) || sliding && Input.IsKeyPressed(0x01)) {
        Render.FilledRect(x, y + 13, 350, 5, style.element_bg_hovered_col);
        Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_hovered_col);
        const tsize = get_tsize(value.toString());
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 4, y - 20, tsize.x + 10, 22, style.frame_bg_col);
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 5, y - 19, tsize.x + 12, 20, style.frame_bg_col)
        create_string(x + useable_value, y - 20, 1, value.toString(), style.font_unselected_col);
        if (Input.IsKeyPressed(0x01)) {
            sliding = true;
            const delta = 1 - (mouse.x - x + 350) / 350;
            value = Math.round(min + (min - max) * delta);
            if (value < 0)
                value = 0;
            if (value > max)
                value = max;
        }
    } else {
        sliding = false;
    }
    Render.FilledRect(x, y + 13, useable_value + 2, 5, style.window_primary_col);
    Render.FilledRect(x + 1, y + 12, useable_value, 7, style.window_primary_col);
    Render.FilledRect(x + useable_value - 2, y + 9, 5, 12, style.element_extra_col);
    Render.FilledRect(x + useable_value - 1, y + 8, 3, 14, style.element_extra_col);
    return value;
}
function create_dropdown(title, x, y, options) {
    create_string(x, y - 10, 0, title, style.font_col);
    Render.FilledRect(x, y + 14, 350, 23, style.frame_bg_col);
    Render.FilledRect(x + 1, y + 13, 348, 25, style.frame_bg_col);
    Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_border_col);
    Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_border_col);
    Render.Line(x + 350, y + 15, x + 350, y + 36, style.window_border_col);
    Render.Line(x + 350, y + 36, x + 349, y + 38, style.window_border_col);
    Render.Line(x + 349, y + 38, x + 1, y + 38, style.window_border_col);
    Render.Line(x + 1, y + 38, x, y + 36, style.window_border_col);
    Render.Line(x, y + 36, x, y + 15, style.window_border_col);
    Render.Line(x, y + 15, x + 1, y + 13, style.window_border_col);
    Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_unselected_col);
    create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_unselected_col);
    if (inbox(x, y + 13, x + 350, y + 38)) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            options[2] = !options[2];
        }
    }
    if (options[2]) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_primary_col);
        Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_primary_col);
        Render.Line(x + 350, y + 15, x + 350, y + 38, style.window_primary_col);
        Render.Line(x + 350, y + 38, x, y + 38, style.window_primary_col);
        Render.Line(x, y + 38, x, y + 15, style.window_primary_col);
        Render.Line(x, y + 15, x + 1, y + 13, style.window_primary_col);
        const totallength = 0;
        for (i = 0; i < options[1].length; i++) {
            totallength += 26;
            Render.FilledRect(x, y + 39 + (26 * i), 351, 26, style.window_border_col);
            if (options[0] == i) {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
            } else {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
            }
            if (inbox(x, y + 37 + 26 * i, x + 350, y + 63 + 26 * i)) {
                if (options[0] == i) {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
                } else {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
                }
                if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
                    globaltime = Globals.Realtime();
                    options[0] = i;
                    options[2] = !options[2];
                }
            }
        }
        Render.Line(x, y + 16, x, y + 38 + totallength, style.window_border_col);
        Render.Line(x, y + 37 + totallength, x + 1, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 1, y + 39 + totallength, x + 349, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 349, y + 39 + totallength, x + 350, y + 37 + totallength, style.window_border_col);
        Render.Line(x + 350, y + 37 + totallength, x + 350, y + 16, style.window_border_col);
        Render.Line(x, y + 36, x + 1, y + 38, style.window_primary_col);
        Render.Line(x + 349, y + 38, x + 350, y + 36, style.window_primary_col);
        if (!inbox(x, y + 16, x + 350, y + 41 + totallength) && Input.IsKeyPressed(0x01)) {
            options[2] = false;
        }
    }
    return options;
}
function update_variables() {
    exports.style = style;
    if (style.opt_menu_rainbow_bg) {
        var interval = 0.3;
        if (Globals.Realtime() > (globaltime + 0.1)) {
            num = num + (interval / 20);
        }
        const r = Math.sin(num) * 127 + 128;
        const g = Math.sin(num + 2) * 127 + 128;
        const b = Math.sin(num + 4) * 127 + 128;
        style.window_primary_col = [r, g, b, 255];
        style.tooltips_outline_col = [r, g, b, 255];
    }
}
exports.begin_menu = begin_menu;
exports.create_tab = create_tab;
exports.create_checkbox = create_checkbox;
exports.create_slider = create_slider;
exports.create_dropdown = create_dropdown
exports.get_textsize = get_tsize;
exports.create_string = create_string;
exports.style = style;
JavaScript:
const gui = require("GUI Module.js");
const tab = false;
const tab2 = false;
const exampletab_main = false;
const exampletab_secondary = false;
const checkbox_testing = false;
const checkbox2_testing = false;
const checkbox3_testing = false;
const checkbox4_testing = false;
const slider_testing = 180;
const dropdown_testing = [0, ["option1", "option2", "option3"], false];
function clear_tabs() {
    tab = false;
    tab2 = false;
}
function clear_semi_tabs() {
    exampletab_main = false;
    exampletab_secondary = false;
}
function main() {
    gui.begin_menu("Arcane", 100, 100, 540, 460);
    const title_size = gui.get_textsize("Arcane");
    if (gui.create_tab("testing", 145 + title_size.x, 120, tab)) {
        clear_tabs();
        tab = true;
    }
    const tab1_size = gui.get_textsize("testing").x + title_size.x;
    if (gui.create_tab("testing2", 165 + tab1_size, 120, tab2)) {
        clear_tabs();
        tab2 = true;
    }
    if (tab) {
        if (gui.create_tab("Primary", 125, 180, exampletab_main)) {
            clear_semi_tabs();
            exampletab_main = true;
        }
        if (gui.create_tab("Secondary", 125, 210, exampletab_secondary)) {
            clear_semi_tabs();
            exampletab_secondary = true;
        }
        if (exampletab_main) {
            checkbox_testing = gui.create_checkbox("checkbox_testing", 265, 195, checkbox_testing);
            checkbox2_testing = gui.create_checkbox("Another checkbox", 265, 230, checkbox2_testing);
        }
        if (exampletab_secondary) {
            checkbox3_testing = gui.create_checkbox("testing", 265, 195, checkbox3_testing);
            checkbox4_testing = gui.create_checkbox("testing 2", 265, 230, checkbox4_testing);
            slider_testing = gui.create_slider("slider testing", 265, 265, 360, slider_testing);
            dropdown_testing = gui.create_dropdown("dropdown testing", 265, 310, dropdown_testing);
        }
    }
}
Cheat.RegisterCallback("Draw", "main");
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
 
skeet будет крякнут 30 февраля!
Забаненный
Статус
Оффлайн
Регистрация
5 Июл 2018
Сообщения
350
Реакции[?]
56
Поинты[?]
0
Товары в продаже
1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
JavaScript:
function _TBC_CREATE_MOVE() {
    var is_charged = Exploit.GetCharge()
  
    Exploit[(is_charged != 1 ? "Enable" : "Disable") + "Recharge"]()

    if (can_shift_shot(14) && is_charged != 1) {
        Exploit.DisableRecharge();
        Exploit.Recharge()
    }
}

function _TBC_UNLOAD() {
    Exploit.EnableRecharge();
}



Cheat.RegisterCallback("CreateMove", "_TBC_CREATE_MOVE");
Cheat.RegisterCallback("Unload", "_TBC_UNLOAD");
 
Забаненный
Статус
Оффлайн
Регистрация
23 Май 2020
Сообщения
47
Реакции[?]
7
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
взял с форума вантапа, под кряк пофиксишь, почитаешь, логику поймешь
JavaScript:
const style = {
    // fonts
    title_font: "segoeuib",
    main_font: "segoeui",
    title_font_size: 15,
    main_font_size: 14,
    // colors
    window_bg_col: [27, 27, 27, 255],
    window_border_col: [70, 70, 70, 255],
    window_primary_col: [210, 0, 20, 255],
    frame_bg_col: [60, 60, 60, 255],
    frame_border_col: [40, 40, 40, 255],
    font_col: [255, 255, 255, 255],
    font_selected_col: [255, 255, 255, 255],
    font_hover_col: [255, 255, 255, 255],
    font_unselected_col: [255, 255, 255, 120],
    element_bg_col: [70, 70, 70, 255],
    element_bg_hovered_col: [100, 100, 100, 255],
    element_extra_col: [255, 255, 255, 255],
    // options
    opt_tooltips: true,
    opt_menu_rainbow_bg: true
};
const font = 0;
const globaltime = Globals.Realtime();
const sliding = false;
const num = 0.00;
function get_mouse() {
    const mouse = Input.GetCursorPosition();
    return {
        x: mouse[0],
        y: mouse[1]
    };
}
function inbox(x, y, x2, y2) {
    const mouse = get_mouse();
    if (mouse.x > x && mouse.x < x2 && mouse.y > y && mouse.y < y2)
        return true;
}
function get_tsize(text) {
    if (font == 0) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    const size = Render.TextSize(text, font);
    return {
        x: size[0],
        y: size[1]
    };
}
function create_string(x, y, aligned, text, color, isTitle) {
    if (font == 0 || font == Render.AddFont(style.title_font, style.title_font_size, 500)) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    if (isTitle) {
        font = Render.AddFont(style.title_font, style.title_font_size, 500);
    }
    Render.String(x, y, aligned, text, color, font);
}
function begin_menu(title, x, y, width, height) {
    update_variables();
    Render.FilledRect(x, y, width, height, style.window_bg_col);
    Render.FilledRect(x, y, width, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y - 2, width - 2, 2, style.window_primary_col);
    Render.FilledRect(x + 2, y - 3, width - 4, 1, style.window_primary_col);
    Render.FilledRect(x + 4, y - 4, width - 8, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y + height, width - 2, 2, style.window_bg_col);
    Render.FilledRect(x + 2, y + height, width - 4, 3, style.window_bg_col);
    Render.FilledRect(x + 4, y + height, width - 8, 4, style.window_bg_col);
    Render.Line(x, y + 65, x + width, y + 65, style.window_border_col);
    Render.Line(x + 140, y + 65, x + 140, y + height + 2, style.window_border_col);
    create_string(x + 25, y + 20, 0, title, style.font_col, true);
}
function create_tab(title, x, y, object) {
    if (!object) {
        create_string(x, y, 0, title, style.font_unselected_col);
        create_string(x, y, 0, title, style.font_unselected_col);
    } else {
        create_string(x, y, 0, title, style.font_selected_col);
        create_string(x, y, 0, title, style.font_selected_col);
    }
    const tabSize = get_tsize(title);
    if (inbox(x, y, x + tabSize.x, y + tabSize.y + 4)) {
        create_string(x, y, 0, title, style.font_hover_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    return object;
}
function create_checkbox(title, x, y, object, tooltip) {
    Render.FilledRect(x, y - 1, 11, 13, style.element_bg_col);
    Render.FilledRect(x - 1, y, 13, 11, style.element_bg_col);
    create_string(x + 18, y - 6, 0, title, style.font_col);
    if (inbox(x - 1, y - 1, x + 24 + get_tsize(title).x, y + 12)) {
        Render.FilledRect(x, y - 1, 11, 13, style.element_bg_hovered_col);
        Render.FilledRect(x - 1, y, 13, 11, style.element_bg_hovered_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    if (object) {
        Render.Line(x + 2, y + 5, x + 4, y + 8, style.element_extra_col);
        Render.Line(x + 4, y + 8, x + 8, y + 2, style.element_extra_col);
    }
    return object;
}
function create_slider(title, x, y, max, value) {
    const min = 0;
    const mouse = get_mouse();
    create_string(x, y - 10, 0, title, style.font_col);
    const useable_value = value / max * 350;
    Render.FilledRect(x, y + 13, 350, 5, style.element_bg_col);
    Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_col);
    if (inbox(x, y + 10, x + 350, y + 23) || sliding && Input.IsKeyPressed(0x01)) {
        Render.FilledRect(x, y + 13, 350, 5, style.element_bg_hovered_col);
        Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_hovered_col);
        const tsize = get_tsize(value.toString());
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 4, y - 20, tsize.x + 10, 22, style.frame_bg_col);
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 5, y - 19, tsize.x + 12, 20, style.frame_bg_col)
        create_string(x + useable_value, y - 20, 1, value.toString(), style.font_unselected_col);
        if (Input.IsKeyPressed(0x01)) {
            sliding = true;
            const delta = 1 - (mouse.x - x + 350) / 350;
            value = Math.round(min + (min - max) * delta);
            if (value < 0)
                value = 0;
            if (value > max)
                value = max;
        }
    } else {
        sliding = false;
    }
    Render.FilledRect(x, y + 13, useable_value + 2, 5, style.window_primary_col);
    Render.FilledRect(x + 1, y + 12, useable_value, 7, style.window_primary_col);
    Render.FilledRect(x + useable_value - 2, y + 9, 5, 12, style.element_extra_col);
    Render.FilledRect(x + useable_value - 1, y + 8, 3, 14, style.element_extra_col);
    return value;
}
function create_dropdown(title, x, y, options) {
    create_string(x, y - 10, 0, title, style.font_col);
    Render.FilledRect(x, y + 14, 350, 23, style.frame_bg_col);
    Render.FilledRect(x + 1, y + 13, 348, 25, style.frame_bg_col);
    Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_border_col);
    Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_border_col);
    Render.Line(x + 350, y + 15, x + 350, y + 36, style.window_border_col);
    Render.Line(x + 350, y + 36, x + 349, y + 38, style.window_border_col);
    Render.Line(x + 349, y + 38, x + 1, y + 38, style.window_border_col);
    Render.Line(x + 1, y + 38, x, y + 36, style.window_border_col);
    Render.Line(x, y + 36, x, y + 15, style.window_border_col);
    Render.Line(x, y + 15, x + 1, y + 13, style.window_border_col);
    Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_unselected_col);
    create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_unselected_col);
    if (inbox(x, y + 13, x + 350, y + 38)) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            options[2] = !options[2];
        }
    }
    if (options[2]) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_primary_col);
        Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_primary_col);
        Render.Line(x + 350, y + 15, x + 350, y + 38, style.window_primary_col);
        Render.Line(x + 350, y + 38, x, y + 38, style.window_primary_col);
        Render.Line(x, y + 38, x, y + 15, style.window_primary_col);
        Render.Line(x, y + 15, x + 1, y + 13, style.window_primary_col);
        const totallength = 0;
        for (i = 0; i < options[1].length; i++) {
            totallength += 26;
            Render.FilledRect(x, y + 39 + (26 * i), 351, 26, style.window_border_col);
            if (options[0] == i) {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
            } else {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
            }
            if (inbox(x, y + 37 + 26 * i, x + 350, y + 63 + 26 * i)) {
                if (options[0] == i) {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
                } else {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
                }
                if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
                    globaltime = Globals.Realtime();
                    options[0] = i;
                    options[2] = !options[2];
                }
            }
        }
        Render.Line(x, y + 16, x, y + 38 + totallength, style.window_border_col);
        Render.Line(x, y + 37 + totallength, x + 1, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 1, y + 39 + totallength, x + 349, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 349, y + 39 + totallength, x + 350, y + 37 + totallength, style.window_border_col);
        Render.Line(x + 350, y + 37 + totallength, x + 350, y + 16, style.window_border_col);
        Render.Line(x, y + 36, x + 1, y + 38, style.window_primary_col);
        Render.Line(x + 349, y + 38, x + 350, y + 36, style.window_primary_col);
        if (!inbox(x, y + 16, x + 350, y + 41 + totallength) && Input.IsKeyPressed(0x01)) {
            options[2] = false;
        }
    }
    return options;
}
function update_variables() {
    exports.style = style;
    if (style.opt_menu_rainbow_bg) {
        var interval = 0.3;
        if (Globals.Realtime() > (globaltime + 0.1)) {
            num = num + (interval / 20);
        }
        const r = Math.sin(num) * 127 + 128;
        const g = Math.sin(num + 2) * 127 + 128;
        const b = Math.sin(num + 4) * 127 + 128;
        style.window_primary_col = [r, g, b, 255];
        style.tooltips_outline_col = [r, g, b, 255];
    }
}
exports.begin_menu = begin_menu;
exports.create_tab = create_tab;
exports.create_checkbox = create_checkbox;
exports.create_slider = create_slider;
exports.create_dropdown = create_dropdown
exports.get_textsize = get_tsize;
exports.create_string = create_string;
exports.style = style;
JavaScript:
const gui = require("GUI Module.js");
const tab = false;
const tab2 = false;
const exampletab_main = false;
const exampletab_secondary = false;
const checkbox_testing = false;
const checkbox2_testing = false;
const checkbox3_testing = false;
const checkbox4_testing = false;
const slider_testing = 180;
const dropdown_testing = [0, ["option1", "option2", "option3"], false];
function clear_tabs() {
    tab = false;
    tab2 = false;
}
function clear_semi_tabs() {
    exampletab_main = false;
    exampletab_secondary = false;
}
function main() {
    gui.begin_menu("Arcane", 100, 100, 540, 460);
    const title_size = gui.get_textsize("Arcane");
    if (gui.create_tab("testing", 145 + title_size.x, 120, tab)) {
        clear_tabs();
        tab = true;
    }
    const tab1_size = gui.get_textsize("testing").x + title_size.x;
    if (gui.create_tab("testing2", 165 + tab1_size, 120, tab2)) {
        clear_tabs();
        tab2 = true;
    }
    if (tab) {
        if (gui.create_tab("Primary", 125, 180, exampletab_main)) {
            clear_semi_tabs();
            exampletab_main = true;
        }
        if (gui.create_tab("Secondary", 125, 210, exampletab_secondary)) {
            clear_semi_tabs();
            exampletab_secondary = true;
        }
        if (exampletab_main) {
            checkbox_testing = gui.create_checkbox("checkbox_testing", 265, 195, checkbox_testing);
            checkbox2_testing = gui.create_checkbox("Another checkbox", 265, 230, checkbox2_testing);
        }
        if (exampletab_secondary) {
            checkbox3_testing = gui.create_checkbox("testing", 265, 195, checkbox3_testing);
            checkbox4_testing = gui.create_checkbox("testing 2", 265, 230, checkbox4_testing);
            slider_testing = gui.create_slider("slider testing", 265, 265, 360, slider_testing);
            dropdown_testing = gui.create_dropdown("dropdown testing", 265, 310, dropdown_testing);
        }
    }
}
Cheat.RegisterCallback("Draw", "main");
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
збисиба
 
Начинающий
Статус
Оффлайн
Регистрация
21 Мар 2020
Сообщения
98
Реакции[?]
16
Поинты[?]
1K
взял с форума вантапа, под кряк пофиксишь, почитаешь, логику поймешь
JavaScript:
const style = {
    // fonts
    title_font: "segoeuib",
    main_font: "segoeui",
    title_font_size: 15,
    main_font_size: 14,
    // colors
    window_bg_col: [27, 27, 27, 255],
    window_border_col: [70, 70, 70, 255],
    window_primary_col: [210, 0, 20, 255],
    frame_bg_col: [60, 60, 60, 255],
    frame_border_col: [40, 40, 40, 255],
    font_col: [255, 255, 255, 255],
    font_selected_col: [255, 255, 255, 255],
    font_hover_col: [255, 255, 255, 255],
    font_unselected_col: [255, 255, 255, 120],
    element_bg_col: [70, 70, 70, 255],
    element_bg_hovered_col: [100, 100, 100, 255],
    element_extra_col: [255, 255, 255, 255],
    // options
    opt_tooltips: true,
    opt_menu_rainbow_bg: true
};
const font = 0;
const globaltime = Globals.Realtime();
const sliding = false;
const num = 0.00;
function get_mouse() {
    const mouse = Input.GetCursorPosition();
    return {
        x: mouse[0],
        y: mouse[1]
    };
}
function inbox(x, y, x2, y2) {
    const mouse = get_mouse();
    if (mouse.x > x && mouse.x < x2 && mouse.y > y && mouse.y < y2)
        return true;
}
function get_tsize(text) {
    if (font == 0) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    const size = Render.TextSize(text, font);
    return {
        x: size[0],
        y: size[1]
    };
}
function create_string(x, y, aligned, text, color, isTitle) {
    if (font == 0 || font == Render.AddFont(style.title_font, style.title_font_size, 500)) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    if (isTitle) {
        font = Render.AddFont(style.title_font, style.title_font_size, 500);
    }
    Render.String(x, y, aligned, text, color, font);
}
function begin_menu(title, x, y, width, height) {
    update_variables();
    Render.FilledRect(x, y, width, height, style.window_bg_col);
    Render.FilledRect(x, y, width, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y - 2, width - 2, 2, style.window_primary_col);
    Render.FilledRect(x + 2, y - 3, width - 4, 1, style.window_primary_col);
    Render.FilledRect(x + 4, y - 4, width - 8, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y + height, width - 2, 2, style.window_bg_col);
    Render.FilledRect(x + 2, y + height, width - 4, 3, style.window_bg_col);
    Render.FilledRect(x + 4, y + height, width - 8, 4, style.window_bg_col);
    Render.Line(x, y + 65, x + width, y + 65, style.window_border_col);
    Render.Line(x + 140, y + 65, x + 140, y + height + 2, style.window_border_col);
    create_string(x + 25, y + 20, 0, title, style.font_col, true);
}
function create_tab(title, x, y, object) {
    if (!object) {
        create_string(x, y, 0, title, style.font_unselected_col);
        create_string(x, y, 0, title, style.font_unselected_col);
    } else {
        create_string(x, y, 0, title, style.font_selected_col);
        create_string(x, y, 0, title, style.font_selected_col);
    }
    const tabSize = get_tsize(title);
    if (inbox(x, y, x + tabSize.x, y + tabSize.y + 4)) {
        create_string(x, y, 0, title, style.font_hover_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    return object;
}
function create_checkbox(title, x, y, object, tooltip) {
    Render.FilledRect(x, y - 1, 11, 13, style.element_bg_col);
    Render.FilledRect(x - 1, y, 13, 11, style.element_bg_col);
    create_string(x + 18, y - 6, 0, title, style.font_col);
    if (inbox(x - 1, y - 1, x + 24 + get_tsize(title).x, y + 12)) {
        Render.FilledRect(x, y - 1, 11, 13, style.element_bg_hovered_col);
        Render.FilledRect(x - 1, y, 13, 11, style.element_bg_hovered_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    if (object) {
        Render.Line(x + 2, y + 5, x + 4, y + 8, style.element_extra_col);
        Render.Line(x + 4, y + 8, x + 8, y + 2, style.element_extra_col);
    }
    return object;
}
function create_slider(title, x, y, max, value) {
    const min = 0;
    const mouse = get_mouse();
    create_string(x, y - 10, 0, title, style.font_col);
    const useable_value = value / max * 350;
    Render.FilledRect(x, y + 13, 350, 5, style.element_bg_col);
    Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_col);
    if (inbox(x, y + 10, x + 350, y + 23) || sliding && Input.IsKeyPressed(0x01)) {
        Render.FilledRect(x, y + 13, 350, 5, style.element_bg_hovered_col);
        Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_hovered_col);
        const tsize = get_tsize(value.toString());
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 4, y - 20, tsize.x + 10, 22, style.frame_bg_col);
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 5, y - 19, tsize.x + 12, 20, style.frame_bg_col)
        create_string(x + useable_value, y - 20, 1, value.toString(), style.font_unselected_col);
        if (Input.IsKeyPressed(0x01)) {
            sliding = true;
            const delta = 1 - (mouse.x - x + 350) / 350;
            value = Math.round(min + (min - max) * delta);
            if (value < 0)
                value = 0;
            if (value > max)
                value = max;
        }
    } else {
        sliding = false;
    }
    Render.FilledRect(x, y + 13, useable_value + 2, 5, style.window_primary_col);
    Render.FilledRect(x + 1, y + 12, useable_value, 7, style.window_primary_col);
    Render.FilledRect(x + useable_value - 2, y + 9, 5, 12, style.element_extra_col);
    Render.FilledRect(x + useable_value - 1, y + 8, 3, 14, style.element_extra_col);
    return value;
}
function create_dropdown(title, x, y, options) {
    create_string(x, y - 10, 0, title, style.font_col);
    Render.FilledRect(x, y + 14, 350, 23, style.frame_bg_col);
    Render.FilledRect(x + 1, y + 13, 348, 25, style.frame_bg_col);
    Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_border_col);
    Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_border_col);
    Render.Line(x + 350, y + 15, x + 350, y + 36, style.window_border_col);
    Render.Line(x + 350, y + 36, x + 349, y + 38, style.window_border_col);
    Render.Line(x + 349, y + 38, x + 1, y + 38, style.window_border_col);
    Render.Line(x + 1, y + 38, x, y + 36, style.window_border_col);
    Render.Line(x, y + 36, x, y + 15, style.window_border_col);
    Render.Line(x, y + 15, x + 1, y + 13, style.window_border_col);
    Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_unselected_col);
    create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_unselected_col);
    if (inbox(x, y + 13, x + 350, y + 38)) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            options[2] = !options[2];
        }
    }
    if (options[2]) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_primary_col);
        Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_primary_col);
        Render.Line(x + 350, y + 15, x + 350, y + 38, style.window_primary_col);
        Render.Line(x + 350, y + 38, x, y + 38, style.window_primary_col);
        Render.Line(x, y + 38, x, y + 15, style.window_primary_col);
        Render.Line(x, y + 15, x + 1, y + 13, style.window_primary_col);
        const totallength = 0;
        for (i = 0; i < options[1].length; i++) {
            totallength += 26;
            Render.FilledRect(x, y + 39 + (26 * i), 351, 26, style.window_border_col);
            if (options[0] == i) {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
            } else {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
            }
            if (inbox(x, y + 37 + 26 * i, x + 350, y + 63 + 26 * i)) {
                if (options[0] == i) {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
                } else {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
                }
                if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
                    globaltime = Globals.Realtime();
                    options[0] = i;
                    options[2] = !options[2];
                }
            }
        }
        Render.Line(x, y + 16, x, y + 38 + totallength, style.window_border_col);
        Render.Line(x, y + 37 + totallength, x + 1, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 1, y + 39 + totallength, x + 349, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 349, y + 39 + totallength, x + 350, y + 37 + totallength, style.window_border_col);
        Render.Line(x + 350, y + 37 + totallength, x + 350, y + 16, style.window_border_col);
        Render.Line(x, y + 36, x + 1, y + 38, style.window_primary_col);
        Render.Line(x + 349, y + 38, x + 350, y + 36, style.window_primary_col);
        if (!inbox(x, y + 16, x + 350, y + 41 + totallength) && Input.IsKeyPressed(0x01)) {
            options[2] = false;
        }
    }
    return options;
}
function update_variables() {
    exports.style = style;
    if (style.opt_menu_rainbow_bg) {
        var interval = 0.3;
        if (Globals.Realtime() > (globaltime + 0.1)) {
            num = num + (interval / 20);
        }
        const r = Math.sin(num) * 127 + 128;
        const g = Math.sin(num + 2) * 127 + 128;
        const b = Math.sin(num + 4) * 127 + 128;
        style.window_primary_col = [r, g, b, 255];
        style.tooltips_outline_col = [r, g, b, 255];
    }
}
exports.begin_menu = begin_menu;
exports.create_tab = create_tab;
exports.create_checkbox = create_checkbox;
exports.create_slider = create_slider;
exports.create_dropdown = create_dropdown
exports.get_textsize = get_tsize;
exports.create_string = create_string;
exports.style = style;
JavaScript:
const gui = require("GUI Module.js");
const tab = false;
const tab2 = false;
const exampletab_main = false;
const exampletab_secondary = false;
const checkbox_testing = false;
const checkbox2_testing = false;
const checkbox3_testing = false;
const checkbox4_testing = false;
const slider_testing = 180;
const dropdown_testing = [0, ["option1", "option2", "option3"], false];
function clear_tabs() {
    tab = false;
    tab2 = false;
}
function clear_semi_tabs() {
    exampletab_main = false;
    exampletab_secondary = false;
}
function main() {
    gui.begin_menu("Arcane", 100, 100, 540, 460);
    const title_size = gui.get_textsize("Arcane");
    if (gui.create_tab("testing", 145 + title_size.x, 120, tab)) {
        clear_tabs();
        tab = true;
    }
    const tab1_size = gui.get_textsize("testing").x + title_size.x;
    if (gui.create_tab("testing2", 165 + tab1_size, 120, tab2)) {
        clear_tabs();
        tab2 = true;
    }
    if (tab) {
        if (gui.create_tab("Primary", 125, 180, exampletab_main)) {
            clear_semi_tabs();
            exampletab_main = true;
        }
        if (gui.create_tab("Secondary", 125, 210, exampletab_secondary)) {
            clear_semi_tabs();
            exampletab_secondary = true;
        }
        if (exampletab_main) {
            checkbox_testing = gui.create_checkbox("checkbox_testing", 265, 195, checkbox_testing);
            checkbox2_testing = gui.create_checkbox("Another checkbox", 265, 230, checkbox2_testing);
        }
        if (exampletab_secondary) {
            checkbox3_testing = gui.create_checkbox("testing", 265, 195, checkbox3_testing);
            checkbox4_testing = gui.create_checkbox("testing 2", 265, 230, checkbox4_testing);
            slider_testing = gui.create_slider("slider testing", 265, 265, 360, slider_testing);
            dropdown_testing = gui.create_dropdown("dropdown testing", 265, 310, dropdown_testing);
        }
    }
}
Cheat.RegisterCallback("Draw", "main");
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
немножко не понимаю, на какую кнопку оно закрывается?
 
Начинающий
Статус
Оффлайн
Регистрация
24 Ноя 2020
Сообщения
44
Реакции[?]
1
Поинты[?]
0
взял с форума вантапа, под кряк пофиксишь, почитаешь, логику поймешь
JavaScript:
const style = {
    // fonts
    title_font: "segoeuib",
    main_font: "segoeui",
    title_font_size: 15,
    main_font_size: 14,
    // colors
    window_bg_col: [27, 27, 27, 255],
    window_border_col: [70, 70, 70, 255],
    window_primary_col: [210, 0, 20, 255],
    frame_bg_col: [60, 60, 60, 255],
    frame_border_col: [40, 40, 40, 255],
    font_col: [255, 255, 255, 255],
    font_selected_col: [255, 255, 255, 255],
    font_hover_col: [255, 255, 255, 255],
    font_unselected_col: [255, 255, 255, 120],
    element_bg_col: [70, 70, 70, 255],
    element_bg_hovered_col: [100, 100, 100, 255],
    element_extra_col: [255, 255, 255, 255],
    // options
    opt_tooltips: true,
    opt_menu_rainbow_bg: true
};
const font = 0;
const globaltime = Globals.Realtime();
const sliding = false;
const num = 0.00;
function get_mouse() {
    const mouse = Input.GetCursorPosition();
    return {
        x: mouse[0],
        y: mouse[1]
    };
}
function inbox(x, y, x2, y2) {
    const mouse = get_mouse();
    if (mouse.x > x && mouse.x < x2 && mouse.y > y && mouse.y < y2)
        return true;
}
function get_tsize(text) {
    if (font == 0) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    const size = Render.TextSize(text, font);
    return {
        x: size[0],
        y: size[1]
    };
}
function create_string(x, y, aligned, text, color, isTitle) {
    if (font == 0 || font == Render.AddFont(style.title_font, style.title_font_size, 500)) {
        font = Render.AddFont(style.main_font, style.main_font_size, 500);
    }
    if (isTitle) {
        font = Render.AddFont(style.title_font, style.title_font_size, 500);
    }
    Render.String(x, y, aligned, text, color, font);
}
function begin_menu(title, x, y, width, height) {
    update_variables();
    Render.FilledRect(x, y, width, height, style.window_bg_col);
    Render.FilledRect(x, y, width, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y - 2, width - 2, 2, style.window_primary_col);
    Render.FilledRect(x + 2, y - 3, width - 4, 1, style.window_primary_col);
    Render.FilledRect(x + 4, y - 4, width - 8, 1, style.window_primary_col);
    Render.FilledRect(x + 1, y + height, width - 2, 2, style.window_bg_col);
    Render.FilledRect(x + 2, y + height, width - 4, 3, style.window_bg_col);
    Render.FilledRect(x + 4, y + height, width - 8, 4, style.window_bg_col);
    Render.Line(x, y + 65, x + width, y + 65, style.window_border_col);
    Render.Line(x + 140, y + 65, x + 140, y + height + 2, style.window_border_col);
    create_string(x + 25, y + 20, 0, title, style.font_col, true);
}
function create_tab(title, x, y, object) {
    if (!object) {
        create_string(x, y, 0, title, style.font_unselected_col);
        create_string(x, y, 0, title, style.font_unselected_col);
    } else {
        create_string(x, y, 0, title, style.font_selected_col);
        create_string(x, y, 0, title, style.font_selected_col);
    }
    const tabSize = get_tsize(title);
    if (inbox(x, y, x + tabSize.x, y + tabSize.y + 4)) {
        create_string(x, y, 0, title, style.font_hover_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    return object;
}
function create_checkbox(title, x, y, object, tooltip) {
    Render.FilledRect(x, y - 1, 11, 13, style.element_bg_col);
    Render.FilledRect(x - 1, y, 13, 11, style.element_bg_col);
    create_string(x + 18, y - 6, 0, title, style.font_col);
    if (inbox(x - 1, y - 1, x + 24 + get_tsize(title).x, y + 12)) {
        Render.FilledRect(x, y - 1, 11, 13, style.element_bg_hovered_col);
        Render.FilledRect(x - 1, y, 13, 11, style.element_bg_hovered_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            object = !object;
        }
    }
    if (object) {
        Render.Line(x + 2, y + 5, x + 4, y + 8, style.element_extra_col);
        Render.Line(x + 4, y + 8, x + 8, y + 2, style.element_extra_col);
    }
    return object;
}
function create_slider(title, x, y, max, value) {
    const min = 0;
    const mouse = get_mouse();
    create_string(x, y - 10, 0, title, style.font_col);
    const useable_value = value / max * 350;
    Render.FilledRect(x, y + 13, 350, 5, style.element_bg_col);
    Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_col);
    if (inbox(x, y + 10, x + 350, y + 23) || sliding && Input.IsKeyPressed(0x01)) {
        Render.FilledRect(x, y + 13, 350, 5, style.element_bg_hovered_col);
        Render.FilledRect(x + 1, y + 12, 348, 7, style.element_bg_hovered_col);
        const tsize = get_tsize(value.toString());
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 4, y - 20, tsize.x + 10, 22, style.frame_bg_col);
        Render.FilledRect(x + useable_value - (tsize.x / 2) - 5, y - 19, tsize.x + 12, 20, style.frame_bg_col)
        create_string(x + useable_value, y - 20, 1, value.toString(), style.font_unselected_col);
        if (Input.IsKeyPressed(0x01)) {
            sliding = true;
            const delta = 1 - (mouse.x - x + 350) / 350;
            value = Math.round(min + (min - max) * delta);
            if (value < 0)
                value = 0;
            if (value > max)
                value = max;
        }
    } else {
        sliding = false;
    }
    Render.FilledRect(x, y + 13, useable_value + 2, 5, style.window_primary_col);
    Render.FilledRect(x + 1, y + 12, useable_value, 7, style.window_primary_col);
    Render.FilledRect(x + useable_value - 2, y + 9, 5, 12, style.element_extra_col);
    Render.FilledRect(x + useable_value - 1, y + 8, 3, 14, style.element_extra_col);
    return value;
}
function create_dropdown(title, x, y, options) {
    create_string(x, y - 10, 0, title, style.font_col);
    Render.FilledRect(x, y + 14, 350, 23, style.frame_bg_col);
    Render.FilledRect(x + 1, y + 13, 348, 25, style.frame_bg_col);
    Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_border_col);
    Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_border_col);
    Render.Line(x + 350, y + 15, x + 350, y + 36, style.window_border_col);
    Render.Line(x + 350, y + 36, x + 349, y + 38, style.window_border_col);
    Render.Line(x + 349, y + 38, x + 1, y + 38, style.window_border_col);
    Render.Line(x + 1, y + 38, x, y + 36, style.window_border_col);
    Render.Line(x, y + 36, x, y + 15, style.window_border_col);
    Render.Line(x, y + 15, x + 1, y + 13, style.window_border_col);
    Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_unselected_col);
    create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_unselected_col);
    if (inbox(x, y + 13, x + 350, y + 38)) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
            globaltime = Globals.Realtime();
            options[2] = !options[2];
        }
    }
    if (options[2]) {
        Render.Polygon([[x + 330, y + 23], [x + 340, y + 23], [x + 335, y + 30]], style.font_selected_col);
        create_string(x + 10, y + 15, 0, options[1][options[0]], style.font_selected_col);
        Render.Line(x + 1, y + 13, x + 349, y + 13, style.window_primary_col);
        Render.Line(x + 349, y + 13, x + 350, y + 15, style.window_primary_col);
        Render.Line(x + 350, y + 15, x + 350, y + 38, style.window_primary_col);
        Render.Line(x + 350, y + 38, x, y + 38, style.window_primary_col);
        Render.Line(x, y + 38, x, y + 15, style.window_primary_col);
        Render.Line(x, y + 15, x + 1, y + 13, style.window_primary_col);
        const totallength = 0;
        for (i = 0; i < options[1].length; i++) {
            totallength += 26;
            Render.FilledRect(x, y + 39 + (26 * i), 351, 26, style.window_border_col);
            if (options[0] == i) {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
            } else {
                create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
            }
            if (inbox(x, y + 37 + 26 * i, x + 350, y + 63 + 26 * i)) {
                if (options[0] == i) {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.window_primary_col);
                } else {
                    create_string(x + 10, y + 39 + 26 * i, 0, options[1][i], style.font_unselected_col);
                }
                if (Input.IsKeyPressed(0x01) && Globals.Realtime() > globaltime + 0.2) {
                    globaltime = Globals.Realtime();
                    options[0] = i;
                    options[2] = !options[2];
                }
            }
        }
        Render.Line(x, y + 16, x, y + 38 + totallength, style.window_border_col);
        Render.Line(x, y + 37 + totallength, x + 1, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 1, y + 39 + totallength, x + 349, y + 39 + totallength, style.window_border_col);
        Render.Line(x + 349, y + 39 + totallength, x + 350, y + 37 + totallength, style.window_border_col);
        Render.Line(x + 350, y + 37 + totallength, x + 350, y + 16, style.window_border_col);
        Render.Line(x, y + 36, x + 1, y + 38, style.window_primary_col);
        Render.Line(x + 349, y + 38, x + 350, y + 36, style.window_primary_col);
        if (!inbox(x, y + 16, x + 350, y + 41 + totallength) && Input.IsKeyPressed(0x01)) {
            options[2] = false;
        }
    }
    return options;
}
function update_variables() {
    exports.style = style;
    if (style.opt_menu_rainbow_bg) {
        var interval = 0.3;
        if (Globals.Realtime() > (globaltime + 0.1)) {
            num = num + (interval / 20);
        }
        const r = Math.sin(num) * 127 + 128;
        const g = Math.sin(num + 2) * 127 + 128;
        const b = Math.sin(num + 4) * 127 + 128;
        style.window_primary_col = [r, g, b, 255];
        style.tooltips_outline_col = [r, g, b, 255];
    }
}
exports.begin_menu = begin_menu;
exports.create_tab = create_tab;
exports.create_checkbox = create_checkbox;
exports.create_slider = create_slider;
exports.create_dropdown = create_dropdown
exports.get_textsize = get_tsize;
exports.create_string = create_string;
exports.style = style;
JavaScript:
const gui = require("GUI Module.js");
const tab = false;
const tab2 = false;
const exampletab_main = false;
const exampletab_secondary = false;
const checkbox_testing = false;
const checkbox2_testing = false;
const checkbox3_testing = false;
const checkbox4_testing = false;
const slider_testing = 180;
const dropdown_testing = [0, ["option1", "option2", "option3"], false];
function clear_tabs() {
    tab = false;
    tab2 = false;
}
function clear_semi_tabs() {
    exampletab_main = false;
    exampletab_secondary = false;
}
function main() {
    gui.begin_menu("Arcane", 100, 100, 540, 460);
    const title_size = gui.get_textsize("Arcane");
    if (gui.create_tab("testing", 145 + title_size.x, 120, tab)) {
        clear_tabs();
        tab = true;
    }
    const tab1_size = gui.get_textsize("testing").x + title_size.x;
    if (gui.create_tab("testing2", 165 + tab1_size, 120, tab2)) {
        clear_tabs();
        tab2 = true;
    }
    if (tab) {
        if (gui.create_tab("Primary", 125, 180, exampletab_main)) {
            clear_semi_tabs();
            exampletab_main = true;
        }
        if (gui.create_tab("Secondary", 125, 210, exampletab_secondary)) {
            clear_semi_tabs();
            exampletab_secondary = true;
        }
        if (exampletab_main) {
            checkbox_testing = gui.create_checkbox("checkbox_testing", 265, 195, checkbox_testing);
            checkbox2_testing = gui.create_checkbox("Another checkbox", 265, 230, checkbox2_testing);
        }
        if (exampletab_secondary) {
            checkbox3_testing = gui.create_checkbox("testing", 265, 195, checkbox3_testing);
            checkbox4_testing = gui.create_checkbox("testing 2", 265, 230, checkbox4_testing);
            slider_testing = gui.create_slider("slider testing", 265, 265, 360, slider_testing);
            dropdown_testing = gui.create_dropdown("dropdown testing", 265, 310, dropdown_testing);
        }
    }
}
Cheat.RegisterCallback("Draw", "main");
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
Я не шарю что-то, как ее поставить все функция вставить и тд, подскажите еблану пж.
 
Сверху Снизу