Jump to content
  • 0

How to unfreeze values (Scripting)


Scrayil

Question

Posted

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! ?

2 answers to this question

Recommended Posts

  • Administrators
Posted

You not need run search. You need use getListItems. After that use addListItems with loop if you need this values in the saved list. Or simple remove all items via clearList ()  It is also unfreeze all items before remove it.

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.