Jump to content

Question

3 answers to this question

Recommended Posts

  • 0
Posted
4 hours ago, Bigniggynits said:

can you make it so that a script just freezes a value without changing it?

gg.searchNumber("1", 4)
local r = gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(r) do
  v.freeze = true
end
gg.addListItems(r)

 

  • 0
Posted (edited)
25 minutes ago, xLuaR said:
gg.searchNumber("1", 4)
local r = gg.getResults(gg.getResultsCount())
gg.clearResults()
for i, v in ipairs(r) do
  v.freeze = true
end
gg.addListItems(r)

 

can you do it like this?

if menu == 1 then
gg.setRanges(gg.REGION_C_BSS)
gg.searchNumber("12,303,291", gg.TYPE_DWORD)
local w = gg.getResults(1)
local q = {}
q[1] = {}
q[1].address = w[1].address + 0x30
q[1].flags = gg.TYPE_DWORD
q[1].freeze = true
gg.setValues(q)
gg.addListItems(q)
gg.clearResults()
gg.toast("yes")
end

Edited by Bigniggynits
  • 0
Posted
19 hours ago, Bigniggynits said:

can you do it like this?

if menu == 1 then
gg.setRanges(gg.REGION_C_BSS)
gg.searchNumber("12,303,291", gg.TYPE_DWORD)
local w = gg.getResults(1)
local q = {}
q[1] = {}
q[1].address = w[1].address + 0x30
q[1].flags = gg.TYPE_DWORD
q[1].freeze = true
gg.setValues(q)
gg.addListItems(q)
gg.clearResults()
gg.toast("yes")
end

if menu == 1 then
    gg.setRanges(gg.REGION_C_BSS)
    gg.searchNumber("12,303,291", gg.TYPE_DWORD)
    local r = gg.getResults(1)
    gg.clearResults()
    r[1].address = r[1].address + 0x30
    r[1].flags = 4 -- DWORD
    r[1].freeze = true
    gg.addListItems(r)
    gg.toast("yes")
end

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.