Jump to content
n3kitOzz

Function executes on second launch

Recommended Posts

Posted (edited)

Why is the function is executing after the second time? Even in the logs, everything is fine.

Script:

local gg = gg
menucode = 1
gg.alert('\nDev: @n3kitOzz\nTelegram: @ssb2cheat')

function main()
menu = gg.choice({'Функции ', 'Выход '})
menucode = 1
if menu == nil then hidemenu() end
if menu == 1 then cheatmenu() end
if menu == 2 then os.exit() end
end

function cheatmenu()
menucode = 2
cmenu = gg.choice({'♾ Бесконечные патроны', 'Годмод ', 'Темп стрельбы', 'Хилпушка(скоро) ', 'На главную', 'Выйти'})
if cmenu == nil then hidemenu() end
if cmenu == 1 then inf_ammo() end
if cmenu == 2 then godmode() end
if cmenu == 3 then firerate() end
if cmenu == 4 then healgun() end
if cmenu == 5 then main() end
if cmenu == 6 then os.exit() end
end

function inf_ammo()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('444418', gg.TYPE_DWORD)
gg.sleep(2000)
gg.getResults(10000)
gg.sleep(3000)
gg.editAll('100000000', gg.TYPE_DWORD)
gg.sleep(300)
gg.toast('Ammo hacked')
gg.sleep(100)
gg.alert('Теперь у вас миллионы патронов')
end

function firerate()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('0.15244479477', gg.TYPE_FLOAT)
gg.sleep(2000)
gg.getResults(100000)
gg.sleep(1000)
gg.editAll('0.001', gg.TYPE_FLOAT)
gg.sleep(3000)
gg.toast('Firerate hacked')
gg.alert('Повышен темп стрельбы у ак и скар.')
end

function godmode()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1132809191', gg.TYPE_DWORD)
gg.sleep(2000)
a = gg.getResults(10000)
gg.sleep(1000)
gg.editAll('2000000000', gg.TYPE_DWORD)
gg.sleep(500)
gg.freeze = true
gg.sleep(300)
gg.freezeType = FREEZE_NORMAL
gg.sleep(399)
gg.toast('You are GOOOOOD!')
end


function megadamage()
end

function healgun()
end

function hidemenu()
gg.sleep(100)
gg.toast('Меню скрыто')
gg.setVisible(false)
end

while true do
if gg.isVisible(true) then
  if menucode == 1 then
    main()
  elseif menucode == 2 then
    cheatmenu()
  else
    main()
end
end
end

And logs:

gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("0.15244479477", gg.TYPE_FLOAT)
gg.getResults(100000)
gg.editAll("0.001", gg.TYPE_FLOAT)
gg.toast("Firerate hacked")
gg.alert("Повышен темп стрельбы у ак и скар.")

BUT HERE IS NO EFFECT, AND NOTHING HAPPEND.

--[[ return: 1 ]]
gg.choice({ -- table(1498f91)
	[1] = '♾ Бесконечные патроны',
	[2] = 'Годмод ',
	[3] = 'Темп стрельбы',
	[4] = 'Хилпушка(скоро) ',
	[5] = 'На главную',
	[6] = 'Выйти',
})
--[[ return: 3 ]]
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("0.15244479477", gg.TYPE_FLOAT)
gg.getResults(100000)
gg.editAll("0.001", gg.TYPE_FLOAT)
gg.toast("Firerate hacked")
gg.alert("Повышен темп стрельбы у ак и скар.")
--[[ return: 1 ]]

AND AFTER SECOND CALL THIS WORKED

 

Edited by n3kitOzz

Share this post


Link to post
Share on other sites

What the reason of using "sleep" here?

As i got, there is just more then 100K variables so thats why its worked only after 2nd call. Try to use complicated group search with related functions.

Share this post


Link to post
Share on other sites
32 minutes ago, loversSlayer said:

What the reason of using "sleep" here?

As i got, there is just more then 100K variables so thats why its worked only after 2nd call. Try to use complicated group search with related functions.

In real - 100< variables. I need to do this numbers lower, allright?

Share this post


Link to post
Share on other sites

Because you need clear results before search anything. Or it will be refine from current search list.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Drok
      my link game https://apkpure.com/vn/secret-tower-500f-super-fast-growing-idle-rpg/me.nextdoors.tower
       
      I remember about a few years ago, I hacked gold, its gem was successful, but now I can't remember what I did to hack it.
    • By n3kitOzz
      Code change a value, but not freazing. Why?
      function flycontrol() gg.setVisible(false) controls_fly = gg.prompt({[1]='Y COORD [-700; 1000]'}, {nil}, {'number'}) if controls_fly == nil then menucode = 2 cheatmenu() else hidemenu() gg.editAll(controls_fly[1],gg.TYPE_FLOAT) gg.freeze = true end end  
    • By Darkness442
      hello 

      I want know how can set licence key to my script and if it set a wrong licence the script stop working 
      thank you 
    • By Fallen_Stress
      Good morning all. I write today because I really need help it's been more than two years that I use gameGuardian my phone is rooted. before I was content to download Scripts already made by people, but now I decided to create my Scripts myself I learned how to write Scripts lua I already mastered well. but i have a serious problem i don't know how to search for values like wall hack, aimbot, damage hack i really need help, could someone show me a method that works with multiple games to search what kind of values please and how to modify them. if you want you can help me by mail thestress1533@gmail.com thank you all
    • By danihelios10
      Look that video,anyone know how to do it, if anyone knows i can explain how to hack stats 
×
×
  • Create New...