hoangninyb Posted July 6, 2021 Posted July 6, 2021 Please help me clear all values in listItems and reset the values that have been changed many times to their original values!
MAARS Posted July 6, 2021 Posted July 6, 2021 * first not that it is not need to add value in the saved list if you are not freezing them I recommend this in case of no freeze local values local home = {} function home.menu () debug = -1 if not values then gg.clearResults() gg.searchNumber(4, gg.TYPE_DWORD) values = gg.getResults(gg.getResultsCount()) gg.clearResults() end local menu = gg.choice({"Activate hack","Deactivate hack","Exit"},0,"") if menu == nil then return nil elseif menu == 1 then home.activate() elseif menu == 2 then home.deactivate() end end function home.activate () gg.loadResults(values) gg.getResults(#values) gg.editAll("5", gg.TYPE_DWORD) gg.clearResults() gg.toast("Activated") end function home.deactivate () gg.loadResults(values) gg.getResults(#values) gg.editAll("5", gg.TYPE_DWORD) gg.clearResults() gg.toast("Deactivated") end while true do if gg.isVisible(true) then gg.setVisible(false) debug = 1 end if debug == 1 then home.menu() end end note this will only work if all values are edited to the same value, also the default values for all is the same
hoangninyb Posted July 6, 2021 Author Posted July 6, 2021 2 hours ago, MAARS said: * first not that it is not need to add value in the saved list if you are not freezing them I recommend this in case of no freeze local values local home = {} function home.menu () debug = -1 if not values then gg.clearResults() gg.searchNumber(4, gg.TYPE_DWORD) values = gg.getResults(gg.getResultsCount()) gg.clearResults() end local menu = gg.choice({"Activate hack","Deactivate hack","Exit"},0,"") if menu == nil then return nil elseif menu == 1 then home.activate() elseif menu == 2 then home.deactivate() end end function home.activate () gg.loadResults(values) gg.getResults(#values) gg.editAll("5", gg.TYPE_DWORD) gg.clearResults() gg.toast("Activated") end function home.deactivate () gg.loadResults(values) gg.getResults(#values) gg.editAll("5", gg.TYPE_DWORD) gg.clearResults() gg.toast("Deactivated") end while true do if gg.isVisible(true) then gg.setVisible(false) debug = 1 end if debug == 1 then home.menu() end end note this will only work if all values are edited to the same value, also the default values for all is the same Hey bro! when my values change, they freeze. And only some of the changed values are the same, and the default value is not the same, I think it's hard math!
HEROGAMEOfficial Posted July 7, 2021 Posted July 7, 2021 17 hours ago, hoangninyb said: clear all values in listItems gg.clearListItems() 17 hours ago, hoangninyb said: reset the values that have been changed many times to their original values! Use gg.saveVariable to save original value. This example: gg.searchNumber("1234;1.0F;12B", 4) if gg.getResutsCount() > 0 then local a = gg.getResuts(gg.getResutsCount()) gg.clearResults() gg.saveVariable(a, gg.EXT_CACHE_DIR.."/orig.value")--save original value --dofile(gg.EXT_CACHE_DIR.."/orig.value")--revert to original value for _, __ in next, a do if __.flags == gg.TYPE_DWORD then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value elseif __.flags == gg.TYPE_FLOAT then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value elseif __.flags == gg.TYPE_BYTE then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value end end --gg.setValues(a)--apply you value end
hoangninyb Posted July 7, 2021 Author Posted July 7, 2021 2 hours ago, HEROGAMEOfficial said: gg.clearListItems() Use gg.saveVariable to save original value. This example: gg.searchNumber("1234;1.0F;12B", 4) if gg.getResutsCount() > 0 then local a = gg.getResuts(gg.getResutsCount()) gg.clearResults() gg.saveVariable(a, gg.EXT_CACHE_DIR.."/orig.value")--save original value --dofile(gg.EXT_CACHE_DIR.."/orig.value")--revert to original value for _, __ in next, a do if __.flags == gg.TYPE_DWORD then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value elseif __.flags == gg.TYPE_FLOAT then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value elseif __.flags == gg.TYPE_BYTE then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value end end --gg.setValues(a)--apply you value end Bro, it 20210704_480p.mp4 Don't work [added 4 minutes later] gg.clearListItems() error
hoangninyb Posted July 7, 2021 Author Posted July 7, 2021 3 hours ago, HEROGAMEOfficial said: gg.clearListItems() Use gg.saveVariable to save original value. This example: gg.searchNumber("1234;1.0F;12B", 4) if gg.getResutsCount() > 0 then local a = gg.getResuts(gg.getResutsCount()) gg.clearResults() gg.saveVariable(a, gg.EXT_CACHE_DIR.."/orig.value")--save original value --dofile(gg.EXT_CACHE_DIR.."/orig.value")--revert to original value for _, __ in next, a do if __.flags == gg.TYPE_DWORD then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value elseif __.flags == gg.TYPE_FLOAT then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value elseif __.flags == gg.TYPE_BYTE then a[_].value = a[_].value -- Edit your value --a[_].freeze = true --If you want freeze value end end --gg.setValues(a)--apply you value end Hey bro! I solved this problem using gg.clearList() gg.saveList() gg.loadList() thank you for your help!
Question
hoangninyb
Please help me clear all values in listItems and reset the values that have been changed many times to their original values!
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.