Advertisement
Mister_Stefan

gs aa inverter

Jul 25th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.47 KB | None | 0 0
  1.  local client_draw_hitboxes, client_set_event_callback, client_userid_to_entindex, entity_get_local_player, ui_get, ui_new_checkbox, ui_new_color_picker, ui_new_combobox, ui_new_slider, ui_set_callback, ui_set_visible = client.draw_hitboxes, client.set_event_callback, client.userid_to_entindex, entity.get_local_player, ui.get, ui.new_checkbox, ui.new_color_picker, ui.new_combobox, ui.new_slider, ui.set_callback, ui.set_visible
  2. local client_set_event_callback, client_userid_to_entindex, entity_get_local_player, entity_get_player_resource, entity_get_prop, ui_reference, ui_set, ui_set_visible = client.set_event_callback, client.userid_to_entindex, entity.get_local_player, entity.get_player_resource, entity.get_prop, ui.reference, ui.set, ui.set_visible
  3. local ui_get = ui.get
  4. local w, h = client.screen_size()
  5. local ui_reference = ui.reference
  6. local ui_set = ui.set
  7. local ui_set_callback = ui.set_callback
  8.  
  9. --References
  10. local body_yaw, body_yaw_slider = ui.reference("AA", "Anti-aimbot angles", "Body yaw")
  11.  
  12. --Checkbox and hotkey
  13. local inverter = ui.new_checkbox("AA", "Anti-aimbot angles", "Antiaim inverter")
  14. local flipSide1 = ui.new_hotkey("AA", "Anti-aimbot angles", "flip1", true)
  15.  
  16. --Main code
  17. local ang = 0
  18. local side = true
  19. local run_command = function()
  20.  
  21. ui.set(flipSide1, "Toggle")
  22.  
  23. if(ui.get(flipSide1)) then
  24. ui.set(body_yaw_slider, -180)
  25. side = true
  26. else
  27. ui.set(body_yaw_slider, 180)
  28. side = false
  29. end
  30. end
  31.  
  32. client.set_event_callback("run_command", run_command)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement