Advertisement
Griffew

Android Menu V1(Not Secure)

Dec 20th, 2022 (edited)
1,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | Gaming | 0 0
  1. local buttonGui = true
  2. local buttonGuiText = {}
  3. local sensorMum = {}
  4. local ToggleInfo000 = false
  5.  
  6. local MainBase = {"Test 1", "Test 2", "Test 3", "Test 4", "Test 5", "Test 6", "Test 7", "Test 8", "Test 9", "Process Menu"}
  7. local ProcessBase = {"Pause App", "Kill App", "Back To Main"}
  8.  
  9. sensorMum = 1
  10.  
  11. function MainMenu()
  12.   m = gg.choice(MainBase,nil,"Main")
  13.  
  14.   if m == 1 then
  15.    gg.toast("\nTest 1")
  16.   end
  17.  
  18.   if m == 2 then
  19.    gg.toast("\nTest 2")
  20.   end
  21.  
  22.   if m == 3 then
  23.    gg.toast("\nTest 3")
  24.   end
  25.  
  26.   if m == 4 then
  27.    gg.toast("\nTest 4")
  28.   end
  29.  
  30.   if m == 5 then
  31.    gg.toast("\nTest 5")
  32.   end
  33.  
  34.   if m == 9 then
  35.    gg.toast("\nTest 9")
  36.   end
  37.  
  38.   if m == 10 then
  39.    sensorMum = 9
  40.    mainCode()
  41.   end
  42.    
  43. end
  44.  
  45. function ProcessMenu()
  46.     m = gg.choice(ProcessBase,nil,"Process Menu")
  47.    
  48.     if m == 1 then
  49.         Toggle000 = gg.choice({"True", "False"},nil,"Process Menu")
  50.         if Toggle000 == 1 then
  51.             ToggleInfo000 = true
  52.             gg.toast("\nPaused The App")
  53.             gg.processPause()
  54.         else
  55.             ToggleInfo000 = false
  56.             gg.toast("\nUnpaused The App")
  57.             gg.processResume()
  58.         end
  59.     end
  60.    
  61.     if m == 2 then
  62.         gg.toast("\nKilled The App/Myself")
  63.         gg.processKill()
  64.     end
  65.    
  66.     if m == 3 then
  67.         sensorMum = 1
  68.         mainCode()
  69.     end
  70.    
  71. end
  72.  
  73. function mainCode()
  74.   if sensorMum == 1 then
  75.     MainMenu()
  76.   end
  77.   if sensorMum == 9 then
  78.     ProcessMenu()
  79.   end
  80. end
  81.  
  82. gg.showUiButton()
  83. while true do
  84.   if gg.isClickedUiButton() then
  85.     if buttonGui == true then
  86.       gg.setVisible(false)
  87.       mainCode()
  88.     end
  89.   end
  90.   if buttonGui == false then
  91.     if gg.isVisible(true) then
  92.       gg.setVisible(false)
  93.       mainCode()
  94.     end
  95.   end
  96. end
Tags: Android root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement