-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkeyesp.lua
26 lines (22 loc) · 1001 Bytes
/
keyesp.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--name keyesp
--desc enables esp features on keybind
--author sekc
function onUI()
ui.checkbox("box", "keyesp box")
ui.sameLine()
ui.keybinder("keyesp key")
ui.checkbox("name", "keyesp name")
ui.checkbox("healthbar", "keyesp healthbar")
ui.checkbox("ignorez chams alpha", "keyesp ignorez chams alpha")
end
function onCreateMove()
local keybinderDown = ui.isKeybinderDown("keyesp key")
ui.setConfigBool("enemy esp box", ui.getConfigBool("keyesp box") and keybinderDown)
ui.setConfigBool("enemy esp name", ui.getConfigBool("keyesp name") and keybinderDown)
ui.setConfigBool("enemy esp healthbar", ui.getConfigBool("keyesp healthbar") and keybinderDown)
local chamCol = ui.getConfigCol("enemy ignorez chams color")
chamCol.value.w = ui.getConfigBool("keyesp ignorez chams alpha") and keybinderDown and 1 or 0
ui.setConfigCol("enemy ignorez chams color", chamCol)
end
eclipse.registerHook("UI", onUI)
eclipse.registerHook("createMove", onCreateMove)