Jump to content
  • 0

Command script to get the exact value results that we wants


Yosuasianturi

Question

How to create a script to get the exact values that we want? 

I want to get the exact results that I want

 

I'm new to Lua. It seems that this command gg.getresults only will edit the first value or getting only the first value what  should I add so that i can only get edit the exact value that I wanted, ? Something like gg.getresults()... Anything? ,filter commands or everything that can helpex.lua

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Are you asking how to retrieve and edit a certain amount of results? gg.getResults(*Specify how many here*) is what you need yes.

For a full list of parameters (and the greatest resource readily available to read and look into at any given free moment) 

See -> https://gameguardian.net/help/classgg.html/

Link to comment
Share on other sites

if you have 10 results and the value you want to edit is the 6th value then you can remove 5 values like this

local r = gg.getResults(5)
gg.removeResults(r)

now you have 5 value left and your wanted value is on top the list

Another method is looping trough

local values = gg.getResults(10)
for k, v in pairs (values) do
  if k == 6 then 
    v.value = 7383737
    gg.setValues(values)
    break
  end
end

This will edit only the 6th value on the list, I hope it will help

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.