· 4 years ago · Sep 11, 2021, 07:32 PM
1--[[
2Current known issues:
3- Doubletap is turning off/on (probably with other 2 aswell idk)
4- Must have every keybind to HOLD otherwise it wouldn't turn them off for whatever reason
5- Must have Double tap, Freestand and Peek assist binded to a key atleast.
6]]--
7
8--fatality api references
9local menu = fatality.menu
10local render = fatality.render
11local callbacks = fatality.callbacks
12local input = fatality.input
13
14--getting screensize/font/color for rendering the indicators
15local screensize = render:screen_size()
16local x, y = screensize.x / 2, screensize.y / 2
17local font = render:create_font("Calibri", 13, 200, true) -- change your font here to your own preference
18local color = csgo.color(105, 212, 255, 255) -- change your indicator color here to your own preference
19
20--defining the key for it to use because we can't create hotkeys with the current api
21local switch_key = 0x46 -- The key is "F" // You can find other keys from here: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
22
23--ideal tick function of setting DT, Freestand and Peek assist at once
24local function le_ideal_ticke()
25 if input:is_key_down(switch_key) then
26 menu:get_reference("Rage", "Aimbot", "Aimbot", "Double tap"):set_int(1)
27 menu:get_reference("Rage", "Anti-aim", "General", "Freestand"):set_int(1)
28 menu:get_reference("Misc", "Movement", "Movement", "Peek assist"):set_int(1) -- have to add a extra movement because it wouldn't work either
29
30 --rendering indicator when the key is hold
31 render:text(font, x - 27, y + 10, "Le Ideal Ticke", color) -- change indicator name/position here to your own preference
32 end
33end
34
35--draw function of drawing the indicator from above + checking if we are in-game
36local function draw()
37 if not csgo.interface_handler:get_engine_client():is_in_game() then
38 return;
39 end
40
41 le_ideal_ticke()
42end
43
44--paint callback for the functions to work
45callbacks:add("paint", draw)