Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fuction Main()
- A = gg.multiChoice({
- 'Menu 1',
- 'Mã 1',
- 'Thoát'},nil,\n'Nhập Tên Của Bản <====')
- if a == nil then else
- if a[1] == true then menu() end
- if a[2] == true then ma1() end
- if a[3] == true then thoat() end --Tên Của Phần Thoát Menu Là thoat()
- end
- XGCK=-1
- end
- fuction menu()
- b = gg.multiChoice({
- 'Chạy Mã 2',
- 'Back'},nil,
- 'Menu Có Chức Năng Back')
- if b[1] == true then cm2() end
- if b[2] == true then HOME() end
- end
- GLWW=-1
- end
- function cm2()
- --Dán Mã Vào Đây Rồi End
- end
- --Phần Thoát Menu
- function thoat()
- print('Tên Bạn')
- os.exit() --Bắt Buộc Có Để Thoát Menu
- end
- --Phần Back Làm Cho Menu Đó Về Lại Main()
- function HOME()
- lw=1
- Main()
- end
- --Phần Tử Của Menu Giúp Menu Hoạt Động
- cs = '??' --Nhập gì cũng Được
- while(true)do
- if gg.isVisible(true) then
- XGCK=1
- gg.setVisible(false)
- end
- gg.clearResults()
- if XGCK==1 then
- Main()
- end
- end
- --Chỉ Cần Copy Lại Ở Nút Bên Dưới Là Được.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement