Advertisement
NmChris

Legit fix

Jun 24th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2. -- Caching common functions
  3. --------------------------------------------------------------------------------
  4. local client_set_event_callback, ui_get, ui_new_checkbox, ui_reference, ui_set = client.set_event_callback, ui.get, ui.new_checkbox, ui.reference, ui.set
  5.  
  6. --------------------------------------------------------------------------------
  7. -- Constants and variables
  8. --------------------------------------------------------------------------------
  9. local rage_ref = ui_reference("RAGE", "Aimbot", "Enabled")
  10.  
  11. ------------------------------------------------------------
  12. -- Menu handling
  13. --------------------------------------------------------------------------------
  14. local legit_fix = ui_new_checkbox("LUA", "B", "Legit anti-aim fix")
  15.  
  16. --------------------------------------------------------------------------------
  17. -- Game event handling
  18. --------------------------------------------------------------------------------
  19. local function setup_command(cmd)
  20.     if not ui_get(legit_fix) then
  21.         return
  22.     end
  23.     ui_set(rage_ref, cmd.in_attack ~= 1)
  24. end
  25.  
  26. client_set_event_callback("setup_command", setup_command)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement