Jump to content
  • 0

How to freeze value?


maulz

Question

Posted

Hello guys

I have a question, when i try to freeze using this

gg.getListItems(unl)
  for i, v in ipairs(unl) do
      unl[i].value = "200"
      unl[i].freeze = true
  end
  gg.setValues(unl)

The values is changing but, the values not freezing. How can i fix it?

Thanks in advance

3 answers to this question

Recommended Posts

Posted
19 hours ago, maulz said:

Hello guys

I have a question, when i try to freeze using this


gg.getListItems(unl)
  for i, v in ipairs(unl) do
      unl[i].value = "200"
      unl[i].freeze = true
  end
  gg.setValues(unl)

The values is changing but, the values not freezing. How can i fix it?

Thanks in advance

Use this code :

 

gg.searchNumber('100', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)--search number and search type. 
local O = gg.getResults(50000)--get resuts
for i, v in ipairs(O) do
    if v.flags == gg.TYPE_DWORD then
        v.value = '101'--type here edit all value. example search number was 100 and now it will be freezed and 101 .
        v.freeze = true
    end
end
gg.addListItems(O)
O = nil

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.