JS-скрипт Weave / nixware style watermark and keybinds

Памагите
Пользователь
Статус
Оффлайн
Регистрация
15 Апр 2021
Сообщения
251
Реакции[?]
46
Поинты[?]
5K
Да.
Screenshot_3.png
JavaScript:
var size = render.get_screen_size();

ui.add_checkbox("Watermark", "watermark")
ui.add_slider("Watermark X", "l_x", 0, size[0]);
ui.add_slider("Watermark Y", "l_y", 0, size[1]);

ui.add_checkbox("Keybinds ( Concept )", "keybinds")
ui.add_slider("Keybinds X", "l1_x", 0, size[0]);
ui.add_slider("Keybinds Y", "l2_y", 0, size[1]);


// Ватермарка
register_callback("render", function() {
  if (!vars.get_bool("js.watermark")) return;
    var time = (new Date()).toTimeString().substring(0, 8);
    var x = vars.get_int("js.l_x");
    var y = vars.get_int("js.l_y");
    {
        // Внутреность
        render.filled_rect([x - 50, y - 50], [181, 22], [19, 17, 18, 255], 0);
        render.filled_rect([x - 50, y - 50], [181, 2], [255, 255, 255, 255], 0);

        // Текст
        render.text([x - 48, y - 38], [255, 255, 255, 255], 12, 4, "nixware.cc | user | " + time )

    }
})
//yt w1ndyxz

// Бинды
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"],
]

// Отрисовка кейбиндов
register_callback("render", function() {
    if (vars.get_bool("js.keybinds")) {
    var binds = [];
    var x = vars.get_int("js.l1_x");
    var y = vars.get_int("js.l2_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], [181, 22], [19, 17, 18, 255], 0);
        render.rect([x - 10, y - 20], [181, 2], [255, 255, 255, 255], 0);;
        // Текст ( Keybinds )
        render.text([x - 6, y - 9], [255, 255, 255, 255], 12, 4, "Keybinds");
      for (var i in binds) {
        // Текст
        render.text([x - 6, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
        render.text([x + 146, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");

    }
})
 

Вложения

Последнее редактирование:
Эксперт
Статус
Оффлайн
Регистрация
19 Дек 2018
Сообщения
2,957
Реакции[?]
491
Поинты[?]
1K
Да.
Посмотреть вложение 201758
JavaScript:
var screen_size = [1920, 1080];

ui.add_checkbox("Watermark", "watermark")

ui.add_checkbox("Keybinds ( Concept )", "keybinds")
ui.add_slider("Location X", "l_x", 0, screen_size[0]);
ui.add_slider("Location Y", "l_y", 0, screen_size[1]);
vars.set_int("js.l_x", 479);
vars.set_int("js.l_y", 850);


// Ватермарка
register_callback("render", function() {
  if (!vars.get_bool("js.watermark")) return;

    var time = (new Date()).toTimeString().substring(0, 8);

    {

        // Внутреность
        render.filled_rect([1731, 15], [180, 22], [19, 17, 18, 255], 0);
        render.filled_rect([1731, 15], [180, 2], [255, 255, 255, 255], 0);


        // Текст
        render.text([1734, 26], [255, 255, 255, 255], 12, 4, "nixware.cc | user | " + time )


    }
})
//yt w1ndyxz


// Бинды
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"],
]


// Отрисовка кейбиндов
register_callback("render", function() {
    if (vars.get_bool("js.keybinds")) {
    var binds = [];
    var x = vars.get_int("js.l_x");
    var y = vars.get_int("js.l_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], [180, 22], [19, 17, 18, 255], 0);
        render.rect([x - 10, y - 20], [180, 2], [255, 255, 255, 255], 0);;

        // Текст ( Keybinds )
        render.text([x - 6, y - 9], [255, 255, 255, 255], 12, 4, "Keybinds");

      for (var i in binds) {

        // Текст
        render.text([x - 6, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
        render.text([x + 146, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");


    }
})
var screen_size = [1920, 1080];
:roflanEbalo: :roflanEbalo: :roflanEbalo: :roflanEbalo: :roflanPominki: :roflanPominki: :roflanPominki: :roflanPominki: 🥵 🥵 🥵 🥵
 
Пользователь
Статус
Оффлайн
Регистрация
23 Авг 2021
Сообщения
521
Реакции[?]
53
Поинты[?]
20K
Да.
Посмотреть вложение 201758
JavaScript:
var screen_size = [1920, 1080];

ui.add_checkbox("Watermark", "watermark")

ui.add_checkbox("Keybinds ( Concept )", "keybinds")
ui.add_slider("Location X", "l_x", 0, screen_size[0]);
ui.add_slider("Location Y", "l_y", 0, screen_size[1]);
vars.set_int("js.l_x", 479);
vars.set_int("js.l_y", 850);


// Ватермарка
register_callback("render", function() {
  if (!vars.get_bool("js.watermark")) return;

    var time = (new Date()).toTimeString().substring(0, 8);

    {

        // Внутреность
        render.filled_rect([1731, 15], [180, 22], [19, 17, 18, 255], 0);
        render.filled_rect([1731, 15], [180, 2], [255, 255, 255, 255], 0);


        // Текст
        render.text([1734, 26], [255, 255, 255, 255], 12, 4, "nixware.cc | user | " + time )


    }
})
//yt w1ndyxz


// Бинды
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"],
]


// Отрисовка кейбиндов
register_callback("render", function() {
    if (vars.get_bool("js.keybinds")) {
    var binds = [];
    var x = vars.get_int("js.l_x");
    var y = vars.get_int("js.l_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], [180, 22], [19, 17, 18, 255], 0);
        render.rect([x - 10, y - 20], [180, 2], [255, 255, 255, 255], 0);;

        // Текст ( Keybinds )
        render.text([x - 6, y - 9], [255, 255, 255, 255], 12, 4, "Keybinds");

      for (var i in binds) {

        // Текст
        render.text([x - 6, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
        render.text([x + 146, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");


    }
})
кому это нужно???
 
Участник
Статус
Оффлайн
Регистрация
4 Мар 2021
Сообщения
883
Реакции[?]
177
Поинты[?]
91K
Да.
Посмотреть вложение 201758
JavaScript:
var screen_size = [1920, 1080];

ui.add_checkbox("Watermark", "watermark")

ui.add_checkbox("Keybinds ( Concept )", "keybinds")
ui.add_slider("Location X", "l_x", 0, screen_size[0]);
ui.add_slider("Location Y", "l_y", 0, screen_size[1]);
vars.set_int("js.l_x", 479);
vars.set_int("js.l_y", 850);


// Ватермарка
register_callback("render", function() {
  if (!vars.get_bool("js.watermark")) return;

    var time = (new Date()).toTimeString().substring(0, 8);

    {

        // Внутреность
        render.filled_rect([1731, 15], [180, 22], [19, 17, 18, 255], 0);
        render.filled_rect([1731, 15], [180, 2], [255, 255, 255, 255], 0);


        // Текст
        render.text([1734, 26], [255, 255, 255, 255], 12, 4, "nixware.cc | user | " + time )


    }
})
//yt w1ndyxz


// Бинды
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"],
]


// Отрисовка кейбиндов
register_callback("render", function() {
    if (vars.get_bool("js.keybinds")) {
    var binds = [];
    var x = vars.get_int("js.l_x");
    var y = vars.get_int("js.l_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], [180, 22], [19, 17, 18, 255], 0);
        render.rect([x - 10, y - 20], [180, 2], [255, 255, 255, 255], 0);;

        // Текст ( Keybinds )
        render.text([x - 6, y - 9], [255, 255, 255, 255], 12, 4, "Keybinds");

      for (var i in binds) {

        // Текст
        render.text([x - 6, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
        render.text([x + 146, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");


    }
})
с каких пор в никсваре есть кейбинды?
 
Памагите
Пользователь
Статус
Оффлайн
Регистрация
15 Апр 2021
Сообщения
251
Реакции[?]
46
Поинты[?]
5K
Обновил под все разрешения экрана
 
Сверху Снизу