Jump to content
  • 0

Lua script | cant i just save value without freezing?


nio04

Question

I'm trying to save a value in 'savedList'

 

When i remove "t[1].freeze = true", it doesnt get saved. But its get saved, when add that freeze command. So, my question - cant i save a value in savedList without freezing ?

 

gg.searchNumber("2", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
local t = gg.getResults(1, nil, nil, nil, nil, nil, nil, nil, nil)
t[1].value = '0'
t[1].freeze = true
gg.addListItems(t)

Plz help me

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Couldn't reproduce your issue. The following code successfully adds first result to saved list (without editing the value): 

gg.searchNumber("2", gg.TYPE_DWORD)
local t = gg.getResults(1)
t[1].value = "0"
gg.addListItems(t)
Link to comment
Share on other sites

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.