Jump to content
  • 0

How to freeze value with gg script lua


LxpyZ

Question

Posted

Guys please help, i tried to freeze my value with script from record script but instead when i do it after i searched the results with script, it doesn't work, leaving with no errors and no edited.

Please help!

Script Part:

gg.setRanges(gg.REGION_ANONYMOUS) input=gg.prompt({'Your Value'}, {[1]=''}, {[1]='number'})

gg.refineNumber(input[1], gg.TYPE_DWORD)

revert= gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) 

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

for i, v in ipairs(t) do 

   if v.flags == gg.TYPE_DWORD then 

      v.value = "150.0" 

      v.freeze = true 

   end 

gg.clearResults() 

 

print("Thanks for using, not permanent, need to be used each round.") 

end

 

 

 

3 answers to this question

Recommended Posts

Posted
10 hours ago, LxpyZ said:

Guys please help, i tried to freeze my value with script from record script but instead when i do it after i searched the results with script, it doesn't work, leaving with no errors and no edited.

Please help!

Script Part:

gg.setRanges(gg.REGION_ANONYMOUS) input=gg.prompt({'Your Value'}, {[1]=''}, {[1]='number'})

gg.refineNumber(input[1], gg.TYPE_DWORD)

revert= gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) 

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

for i, v in ipairs(t) do 

   if v.flags == gg.TYPE_DWORD then 

      v.value = "150.0" 

      v.freeze = true 

   end 

gg.clearResults() 

 

print("Thanks for using, not permanent, need to be used each round.") 

end

 

 

 

It's possible at the game has the value on server freezing it will freeze it client side (I belive) so sometimes freezing won't work

Posted
On 1/17/2021 at 12:45 AM, MonkeySAN said:

try put..

gg.addListItems(t) 

in between 'end' and 'gg.clearResults()' 

ok

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.