JS-скрипт Weave / Кейбинды из LoveSync

Памагите
Пользователь
Статус
Оффлайн
Регистрация
15 Апр 2021
Сообщения
247
Реакции[?]
45
Поинты[?]
4K
Вя четыре
Screenshot_2.png


JavaScript:
var size = render.get_screen_size();

ui.add_checkbox("KeyBinds", "keybinds", 0);
ui.add_slider("KeyBins Location X", "location_keybind_x", 0, size[0]);
ui.add_slider("KeyBins Location Y", "location_keybind_y", 0, size[1]);
vars.set_int("js.location_keybind_x", 479);
vars.set_int("js.location_keybind_y", 850);


register_callback('render', function() {
    if (vars.get_bool("js.keybinds")) {

        var keybinds_list = [
            ["thirdperson","Thirdperson"],
            ["force_safepoints","Force Safepoints"],
            ["body_aim","Force Body"],
            ["override_damage","Override Damage"],
            ["ensure_lean","Ensure Lean"],
            ["inverter","Inverter"],
            ["fake_duck","Fake Duck"],
            ["slow_walk","Slow Walk"],
            ["doubletap","Double Tap"],
            ["hide_shots","Hide Shots"],
            ["peek_assist","Peek Assist"],
        ]
        var binds = [];
        var x = vars.get_int("js.location_keybind_x");
        var y = vars.get_int("js.location_keybind_y");

        for (var n in keybinds_list) {
        if (vars.is_bind_active(keybinds_list[n][0])) binds.push(n);

    }
}

    render.filled_rect([x - 10, y - 20], [155, 23], [17, 17, 17, 100], 2);
    render.picture("C:/w1ndy-yaw/binds.png", [x - 7, y - 23], [30, 30], 255)


    render.text([x + 24, y - 8], [255, 255, 255, 255], 12, 4, "Keybinds");


    for (var i in binds) {

      render.filled_rect([x - 10, y + 7 + 16 * i - 4], [155, 16], [17, 17, 17, 50], 0)
      render.text([x - 6, y + 14 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
      render.text([x + 121, y + 14 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");


    }
})
 

Вложения

Последнее редактирование:
Эксперт
Статус
Оффлайн
Регистрация
19 Дек 2018
Сообщения
2,956
Реакции[?]
492
Поинты[?]
1K
Вя четыре


JavaScript:
var size = render.get_screen_size();

ui.add_checkbox("KeyBinds", "keybinds", 0);
ui.add_slider("KeyBins Location X", "location_keybind_x", 0, size[0]);
ui.add_slider("KeyBins Location Y", "location_keybind_y", 0, size[1]);
vars.set_int("js.location_keybind_x", 479);
vars.set_int("js.location_keybind_y", 850);


register_callback('render', function() {
    if (vars.get_bool("js.keybinds")) {

        var keybinds_list = [
            ["thirdperson","Thirdperson"],
            ["force_safepoints","Force Safepoints"],
            ["body_aim","Force Body"],
            ["override_damage","Override Damage"],
            ["ensure_lean","Ensure Lean"],
            ["inverter","Inverter"],
            ["fake_duck","Fake Duck"],
            ["slow_walk","Slow Walk"],
            ["doubletap","Double Tap"],
            ["hide_shots","Hide Shots"],
            ["peek_assist","Peek Assist"],
        ]
        var binds = [];
        var x = vars.get_int("js.location_keybind_x");
        var y = vars.get_int("js.location_keybind_y");

        for (var n in keybinds_list) {
        if (vars.is_bind_active(keybinds_list[n][0])) binds.push(n);

    }
}

    render.filled_rect([x - 10, y - 20], [155, 23], [17, 17, 17, 100], 2);
    render.picture("C:/w1ndy-yaw/binds.png", [x - 7, y - 23], [30, 30], 255)


    render.text([x + 24, y - 8], [255, 255, 255, 255], 12, 4, "Keybinds");


    for (var i in binds) {

      render.text([x - 6, y + 14 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
      render.text([x + 121, y + 14 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");
      render.filled_rect([x - 10, y + 7 + 16 * i - 4], [155, 16], [17, 17, 17, 50], 0)

    }
})
1653042967785.png а пнг приложить для слабых?
 
Начинающий
Статус
Оффлайн
Регистрация
19 Ноя 2021
Сообщения
82
Реакции[?]
4
Поинты[?]
0
бля вот ток на днях другие сделал чуть получше в свой корд, и тут такие выходят, теперь мои пастой считать будут(
 
t.me/mordeless
Пользователь
Статус
Оффлайн
Регистрация
2 Авг 2020
Сообщения
416
Реакции[?]
78
Поинты[?]
2K
Сверху Снизу