Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. fuction Main()
  2. A = gg.multiChoice({
  3. 'Menu 1',
  4. 'Mã 1',
  5. 'Thoát'},nil,\n'Nhập Tên Của Bản <====')
  6. if a == nil then else
  7. if a[1] == true then menu() end
  8. if a[2] == true then ma1() end
  9. if a[3] == true then thoat() end --Tên Của Phần Thoát Menu Là thoat()
  10. end
  11. XGCK=-1
  12. end
  13.  
  14. fuction menu()
  15. b = gg.multiChoice({
  16. 'Chạy Mã 2',
  17. 'Back'},nil,
  18. 'Menu Có Chức Năng Back')
  19. if b[1] == true then cm2() end
  20. if b[2] == true then HOME() end
  21. end
  22. GLWW=-1
  23. end
  24.  
  25. function cm2()
  26. --Dán Mã Vào Đây Rồi End
  27. end
  28.  
  29. --Phần Thoát Menu
  30. function thoat()
  31. print('Tên Bạn')
  32. os.exit() --Bắt Buộc Có Để Thoát Menu
  33. end
  34.  
  35. --Phần Back Làm Cho Menu Đó Về Lại Main()
  36. function HOME()
  37. lw=1
  38. Main()
  39. end
  40.  
  41. --Phần Tử Của Menu Giúp Menu Hoạt Động
  42. cs = '??' --Nhập gì cũng Được
  43. while(true)do
  44. if gg.isVisible(true) then
  45. XGCK=1
  46. gg.setVisible(false)
  47. end
  48. gg.clearResults()
  49. if XGCK==1 then
  50. Main()
  51. end
  52. end
  53. --Chỉ Cần Copy Lại Ở Nút Bên Dưới Là Được.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement