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

×
×
  • Create New...