Enzo_Funny_Gamer Posted July 30, 2021 Posted July 30, 2021 Save method = [[ gg.searchNumber("10",4) V = gg.getResults(1) save = gg.getFile().."ValueSaved" print("saved to:"..save.." ") gg.saveVariable(V,save) gg.setVisible(true) gg.alert("saved to:"..save.."') ]] The value gets saved in the file "save" How can i load it? Am making this post on mobile so i cant realy type every word on line
MAARS Posted July 31, 2021 Posted July 31, 2021 17 hours ago, Enzo_Funny_Gamer said: I want to save a teleport value by offset The editing the value from the file but not knowing what value it is I don't understand, be more clear please
Enzo_Funny_Gamer Posted July 31, 2021 Author Posted July 31, 2021 3 hours ago, MAARS said: I don't understand, be more clear please gg.searchNumber("..teleport value..",gg.TYPE_QWORD) resultsCount = 2 results = gg.getResults(resultsCount) for i = 1, resultsCount do gg.setValues({ [1] = { address = results.address - 70 flags = 4 value = "i want to save the value whitout knowing the value" } }) end value = "i want to save the value by the gg.saveVariable() method" then get it out the file then gg.searchNumber("..teleport value..",gg.TYPE_QWORD) resultsCount = 2 results = gg.getResults(resultsCount) for i = 1, resultsCount do gg.setValues({ [1] = { address = results.address - 70 flags = 4 value = "saved value" } }) end
MAARS Posted August 1, 2021 Posted August 1, 2021 local v = {} local v[1] = {} v[1].address = results.address - 70 v[1].flags = 4 -- Use the function gg.getValues to get offset value v = gg.getValues(v) and about you offset 70 if it is actual hexadecimal you should put 0x70 instead of 70
Enzo_Funny_Gamer Posted August 1, 2021 Author Posted August 1, 2021 7 minutes ago, MAARS said: local v = {} local v[1] = {} v[1].address = results.address - 70 v[1].flags = 4 -- Use the function gg.getValues to get offset value v = gg.getValues(v) and about you offset 70 if it is actual hexadecimal you should put 0x70 instead of 70 Thanks il do my best to work it out
Enzo_Funny_Gamer Posted August 10, 2021 Author Posted August 10, 2021 On 7/31/2021 at 9:02 PM, MAARS said: local v = {} local v[1] = {} v[1].address = results.address - 70 v[1].flags = 4 -- Use the function gg.getValues to get offset value v = gg.getValues(v) and about you offset 70 if it is actual hexadecimal you should put 0x70 instead of 70 thanks ut i cant edit the recent value that is saved whit offset i tried everything it only loads the values i saved 3 but i get 1
MAARS Posted July 30, 2021 Posted July 30, 2021 3 hours ago, Enzo_Funny_Gamer said: Save method = [[ gg.searchNumber("10",4) V = gg.getResults(1) save = gg.getFile().."ValueSaved" print("saved to:"..save.." ") gg.saveVariable(V,save) gg.setVisible(true) gg.alert("saved to:"..save.."') ]] The value gets saved in the file "save" How can i load it? Am making this post on mobile so i cant realy type every word on line When you restart the game address change so the value will be for sure in the wrong address, so if you are saving the value you should use them only in the current session local v = loadfile(save); local values = v and v() or nil; if values then gg.loadResults(values) else gg.alert('Failed to load results') end
Enzo_Funny_Gamer Posted July 30, 2021 Author Posted July 30, 2021 3 hours ago, MAARS said: When you restart the game address change so the value will be for sure in the wrong address, so if you are saving the value you should use them only in the current session local v = loadfile(save); local values = v and v() or nil; if values then gg.loadResults(values) else gg.alert('Failed to load results') end I want to save a teleport value by offset The editing the value from the file but not knowing what value it is
Question
Enzo_Funny_Gamer
Save method = [[
gg.searchNumber("10",4)
V = gg.getResults(1)
save = gg.getFile().."ValueSaved"
print("saved to:"..save.." ")
gg.saveVariable(V,save)
gg.setVisible(true)
gg.alert("saved to:"..save.."')
]]
The value gets saved in the file "save"
How can i load it?
Am making this post on mobile so i cant realy type every word on line
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.