Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local font = render.create_font("Verdana", 12, 400, true, false, false)
- local icon = render.create_font("untitled-font-1", 13, 400, true, false, false)
- menu.add_check_box("Enable keybind list")
- menu.add_color_picker("Key binds color")
- menu.add_slider_int("Key binds position X", 0, engine.get_screen_width())
- menu.add_slider_int("Key binds position Y", 0, engine.get_screen_height())
- local types = {"always", "holding", "toggled"}
- local get_state, get_mode = menu.get_key_bind_state, menu.get_key_bind_mode
- local screen_x, screen_y = engine.get_screen_width(), engine.get_screen_height()
- local count = 0
- local function add_bind(name, bind_name, x, y)
- if get_state(bind_name) then
- render.draw_text(font, x, y + 22 + (15 * count), color.new(255, 255, 255), name)
- text_width = render.get_text_width(font, "[" .. types[get_mode(bind_name) + 1] .. "]")
- render.draw_text(font, x + 155 - text_width - 5, y + 22 + (15 * count), color.new(255, 255, 255), "[" .. types[get_mode(bind_name) + 1] .. "]")
- count = count + 1
- end
- end
- local function on_paint()
- if not menu.get_bool("Enable keybind list") then
- return
- end
- if not engine.is_in_game() then
- return
- end
- local color = menu.get_color("Key binds color")
- local pos_x = menu.get_int("Key binds position X")
- local pos_y = menu.get_int("Key binds position Y")
- render.draw_rect_filled(pos_x, pos_y, 150, 20, color.new(0, 0, 0, 200))
- render.draw_text(font, pos_x + 21, pos_y + 2, color.new(255, 255, 255), "keybinds")
- render.draw_rect_filled(pos_x, pos_y + 19, 150, 2, color)
- render.draw_text(icon, pos_x + 5, pos_y + 2, color, "a")
- count = 0
- add_bind("Hide shots", "rage.hide_shots_key", pos_x, pos_y)
- add_bind("Edge jump", "misc.edge_jump_key", pos_x, pos_y)
- add_bind("Double tap", "rage.double_tap_key", pos_x, pos_y)
- add_bind("Slow walk", "misc.slow_walk_key", pos_x, pos_y)
- add_bind("Force damage", "rage.force_damage_key", pos_x, pos_y)
- add_bind("Invert desync", "anti_aim.invert_desync_key", pos_x, pos_y)
- add_bind("Fake duck", "anti_aim.fake_duck_key", pos_x, pos_y)
- add_bind("Automatic peek", "misc.automatic_peek_key", pos_x, pos_y)
- add_bind("Third person", "misc.third_person_key", pos_x, pos_y)
- end
- client.add_callback("on_paint", on_paint)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement