Jump to content
We are investigating issues where accounts became locked on login attempt #1. Lock feature disabled for now. ×

how to return the values


 Share

Recommended Posts

I have a question how to return the values that have been changed many times

i tried with the code

if revert ~= nil then gg.setValues(revert) end

but it only returns the previous value, not the original value!

 

 

Link to comment
Share on other sites

2 hours ago, hoangninyb said:

I have a question how to return the values that have been changed many times

i tried with the code

if revert ~= nil then gg.setValues(revert) end

but it only returns the previous value, not the original value!

 

 

You have most likely changed the values in that table already, when you get the results you are editing do

edit_table = gg.getResults(gg.getResultsCount())

revert_table = gg.getResults(gg.getResultsCount())

use edit_table when changing and setting values and revert_table when reverting to original values

Link to comment
Share on other sites

2 hours ago, BadCase said:

You have most likely changed the values in that table already, when you get the results you are editing do

edit_table = gg.getResults(gg.getResultsCount())

revert_table = gg.getResults(gg.getResultsCount())

use edit_table when changing and setting values and revert_table when reverting to original values

yes those values are i change i mean when it is not needed i want to return it to the original price eg at first the value was 10 i changed it to 20 then i again change to 21,23,22..... but after so many times i want to bring it back to 10, for example here there is one value but in reality i have so many different values so i can't use the method normal value fix method

Link to comment
Share on other sites

Save variable, if you want revert load file.

Its simple example.

gg.searchNumber("12345", 4)
if gg.getResultsCount() > 0 then
	gg.saveVariable(gg.getResults(gg.getResultsCount()), gg.EXT_CACHE_DIR.."/original_value")
	gg.editAll("4321", 4)
	gg.editAll("112233", 4)
	gg.editAll("443322", 4)
	gg.setValues(dofile(gg.EXT_CACHE_DIR.."/original_value"))
end

 

Link to comment
Share on other sites

On 7/2/2021 at 6:42 AM, HEROGAMEOfficial said:

Save variable, if you want revert load file.

Its simple example.

gg.searchNumber("12345", 4)
if gg.getResultsCount() > 0 then
	gg.saveVariable(gg.getResults(gg.getResultsCount()), gg.EXT_CACHE_DIR.."/original_value")
	gg.editAll("4321", 4)
	gg.editAll("112233", 4)
	gg.editAll("443322", 4)
	gg.setValues(dofile(gg.EXT_CACHE_DIR.."/original_value"))
end

 

Thank bro, but it doesn't work, when there are multiple values

Link to comment
Share on other sites

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
 Share

  • Similar Content

    • By Jrwi
      I make this video for the reason that sometimes, there are some games that I use frequently but it is a bit boring having to change the values every time I use it.
       
    • By MAARS
      View File Archero cheat script
      Script for : Archero
      Game version : 3.1.2
      Type : lib based
      ---------------------------
      Update 1.0 : 
      - Damage hack 
      - Health hack
      ---------------------------
      Note: 32 and 64 file correspond on armeabi-v7a and arm64-v8a variant of the game.
      YouTube
      Telegram
       
      Submitter MAARS Submitted 05/08/2021 Category LUA scripts  
    • By MAARS
      Script for : Archero
      Game version : 3.1.2
      Type : lib based
      ---------------------------
      Update 1.0 : 
      - Damage hack 
      - Health hack
      ---------------------------
      Note: 32 and 64 file correspond on armeabi-v7a and arm64-v8a variant of the game.
      YouTube
      Telegram
       
    • By CALISTA
      View File GTA San Andreas
      🍁 𝐆𝐓𝐀 𝐒𝐀𝐍 𝐀𝐍𝐃𝐑𝐄𝐀𝐒 🍁
      𝙵𝙴𝙰𝚃𝚄𝚁𝙴𝚂---------
      𝚂𝙿𝙴𝙴𝙳 𝙷𝙰𝙲𝙺
      𝚆𝙷𝙸𝚃𝙴 𝙱𝙾𝙳𝚈
      𝚁𝚄𝙽 𝚁𝙴𝙵𝙸𝙻
      𝙸𝙽𝙵𝙸𝙽𝙸𝚈𝙴 𝙼𝙾𝙽𝙴𝚈
      𝗙𝗢𝗟𝗟𝗢𝗪 𝗨𝗦 𝗙𝗢𝗥 𝗠𝗢𝗥𝗘...
      https://t.me/TheGameCheaters
      Submitter CALISTA Submitted 08/10/2021 Category LUA scripts  
    • By CALISTA
      🍁 𝐆𝐓𝐀 𝐒𝐀𝐍 𝐀𝐍𝐃𝐑𝐄𝐀𝐒 🍁
      𝙵𝙴𝙰𝚃𝚄𝚁𝙴𝚂---------
      𝚂𝙿𝙴𝙴𝙳 𝙷𝙰𝙲𝙺
      𝚆𝙷𝙸𝚃𝙴 𝙱𝙾𝙳𝚈
      𝚁𝚄𝙽 𝚁𝙴𝙵𝙸𝙻
      𝙸𝙽𝙵𝙸𝙽𝙸𝚈𝙴 𝙼𝙾𝙽𝙴𝚈
      𝗙𝗢𝗟𝗟𝗢𝗪 𝗨𝗦 𝗙𝗢𝗥 𝗠𝗢𝗥𝗘...
      https://t.me/TheGameCheaters
×
×
  • 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.