Guest User

Untitled

a guest
Sep 30th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. -- ui
  2. local ui_new_checkbox = ui.new_checkbox
  3. local ui_new_slider = ui.new_slider
  4. local ui_new_combobox = ui.new_combobox
  5. local ui_new_multiselect = ui.new_multiselect
  6. local ui_new_hotkey = ui.new_hotkey
  7. local ui_new_button = ui.new_button
  8. local ui_new_color_picker = ui.new_color_picker
  9. local ui_reference = ui.reference
  10. local ui_set = ui.set
  11. local ui_get = ui.get
  12. local ui_set_callback = ui.set_callback
  13. local ui_set_visible = ui.set_visible
  14. local ui_is_menu_open = ui.is_menu_open
  15.  
  16. -- client
  17. local c_random_int = client.random_int
  18. local c_draw = client.draw_text
  19.  
  20. -- screen
  21. local sw, sh = client.screen_size()
  22. local final_sw, final_sh = sw - 1, sh - 112
  23.  
  24. -- menu
  25. local menu = {
  26. freestanding_hotkey = ui_new_hotkey("AA", "Anti-aimbot angles", "Anti-aim freestanding hotkey"),
  27. }
  28.  
  29. -- references
  30. local reference = {
  31. freestanding = ui_reference("AA", "Anti-aimbot angles", "Freestanding")
  32. }
  33.  
  34. local function work(ctx)
  35. if ui_get(menu.freestanding_hotkey) == true then
  36. ui_set(reference.freestanding, {"Running", "Edge", "Default"})
  37. c_draw(ctx, 85, final_sh - 25, 124, 195, 13, 255, "c+", 0, "FREESTAND")
  38. else
  39. ui_set(reference.freestanding, {"Running", "Edge"})
  40. c_draw(ctx, 85, final_sh - 25, 255, 0, 0, 255, "c+", 0, "FREESTAND")
  41. end
  42. end
  43.  
  44. local function paint(ctx)
  45. work(ctx)
  46. end
  47.  
  48. client.set_event_callback("paint", paint)
Advertisement
Add Comment
Please, Sign In to add comment