Jump to content
  • 0

can someone help me when i turning off the speedhack the unfreeze isn't it working please help me


Lezyi
 Share

Question

function MSon()

gg.alert('ON')

gg.setRanges(gg.REGION_ANONYMOUS)

gg.searchNumber('1.5554413e-43F;0.40000000596F;1.0F:45', gg.TYPE_FLOAT)

gg.refineNumber('1', gg.TYPE_FLOAT)

local t = gg.getResults(2500, nil, nil, nil, nil, nil, nil, nil, nil)

for i, t in ipairs(t) do

 if t.flags == gg.TYPE_FLOAT then

  t.value = "4"

  t.freeze = true

 end

end

gg.addListItems(t)

t = nil

gg.toast('Speed Hack On')

end

 

 

function MSoff()

gg.alert('OFF')

gg.setRanges(gg.REGION_ANONYMOUS)

gg.searchNumber('1.5554413e-43F;0.40000000596F;4.0F:45', gg.TYPE_FLOAT)

gg.refineNumber('4', gg.TYPE_FLOAT)

local t = gg.getResults(2500, nil, nil, nil, nil, nil, nil, nil, nil)

for i, t in ipairs(t) do

 if t.flags == gg.TYPE_FLOAT then

  t.value = "1"

  t.freeze = false

 end

end

gg.removeListItems(t)

t = nil

gg.toast('Speed Hack Off')

end

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

[ @Lezyi ]
---
You have several problems. The first one is, 1) you need to named things properly:

local t = gg.getResults(2500, nil, nil, nil, nil, nil, nil, nil, nil)
for i, t in ipairs(t) do

---
2) You didn't apply the value before saving/removing from savedlist. As @MonkeySAN mentioned, use gg.setValues() before any of these:

gg.addListItems(t)
gg.removeListItems(t)

---
3) On function 'MSoff()', why bother to find the values again? You can just reuse the 't' table from function 'MSon()'.

gg.searchNumber('1.5554413e-43F;0.40000000596F;4.0F:45', gg.TYPE_FLOAT)
gg.refineNumber('4', gg.TYPE_FLOAT)

---
I have adjusted the script, tell me if it's still need some adjustments:

results = ''

function MSon()
gg.alert('ON')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1.5554413e-43F;0.40000000596F;1.0F:45', gg.TYPE_FLOAT)
gg.refineNumber('1', gg.TYPE_FLOAT)
results = gg.getResults(2500, nil, nil, nil, nil, nil, nil, nil, nil)
for key, value in ipairs(results) do
	if value.flags == gg.TYPE_FLOAT then
		results[key].value = "4"
		results[key].freeze = true
	end
end
gg.setValues(t)
gg.addListItems(t)
gg.toast('Speed Hack On')
end

function MSoff()
gg.alert('OFF')
gg.setRanges(gg.REGION_ANONYMOUS)
for key, value in ipairs(results) do
	if value.flags == gg.TYPE_FLOAT then
		results[key].value = "1"
		results[key].freeze = false
	end
end
gg.setValues(t)
gg.removeListItems(t)
gg.toast('Speed Hack Off')
end

---

Link to comment
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
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.