Jump to content
  • 0

How to unfreeze values (Scripting)


Scrayil

Question

Hi everyone, i was just wondering how i could pass a list from a function to another.

eg. I have a function that creates a list of elements, my searchResults list. And freezes all of them using a for cicle.

How can i unfreeze them using another function?

I did this:

 

::Func::
gg.searchNumber('myValue',gg.TYPE_DWORD)
searchResults = gg.getResults(50)
for i, v in ipairs(searchResults) do
v.freeze = true
end
gg.addListItems(searchResults)
gg.toast('HACKED')

::Unfreeze::
gg.searchNumber('sameValue',gg.TYPE_DWORD)
searchResults = gg.getResults(50)
for i, v in ipairs(searchResults) do
v.freeze = false
end
gg.removeListItems(searchResults)
gg.toast('All Done')

It doesn't work..

Can you explain to me how to solve this?

Thank you in advance! ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.