Jump to content
Daisy123

Search and edit a big hex number.

Recommended Posts

Hello. I am learning to write lua script for GG. I have a question. If you know please help me.
I want to search a big hex number for example: 02390D000000026FC90801066FAB0701A66B2A22000000402A  and then edit it to 00000000000000000000000000000000000000220000C8422A in memory.
To search I use this :

gg.clearResults()
gg.clearList()

gg.searchNumber('h02390D000000026FC90801066FAB0701A66B2A22000000402A', gg.TYPE_BYTE)

But I dont know how to edit results to 00000000000000000000000000000000000000220000C8422A.
Please help me. Thank you.

 

Share this post


Link to post
Share on other sites

It is not a number. It is text in hex view. So you need search text, not a number.

See examples for searchNumber in API help.

[added 1 minute later]
-- search for HEX '5C E3 0B 4B 90 9B 11 7B'
gg.searchNumber('h 5C E3 0B 4B 90 9B 11 7B')

For edit use editAll

-- edit HEX
gg.searchNumber('h 5C E3 0B')
gg.getResults(30)
gg.editAll('h 4B 90 9B', gg.TYPE_BYTE)

 

Share this post


Link to post
Share on other sites
10 minutes ago, Enyby said:

It is not a number. It is text in hex view. So you need search text, not a number.

See examples for searchNumber in API help.

[added 1 minute later]

-- search for HEX '5C E3 0B 4B 90 9B 11 7B'
gg.searchNumber('h 5C E3 0B 4B 90 9B 11 7B')

For edit use editAll


-- edit HEX
gg.searchNumber('h 5C E3 0B')
gg.getResults(30)
gg.editAll('h 4B 90 9B', gg.TYPE_BYTE)

 

Oh. I didn't read the editAll in API help carefully. Sorry for that and thank for your help.

Btw, What happend if I ignore space character when put hex value like 'h5CE30B' instead of 'h 5C E3 0B'

Edited by Daisy123

Share this post


Link to post
Share on other sites

Spaces between bytes not necessary. Both is same as above.

-- edit HEX
gg.searchNumber('h 5CE30B')
gg.getResults(30)
gg.editAll('h 4B909B', gg.TYPE_BYTE)

-- edit HEX
gg.searchNumber('h5CE30B')
gg.getResults(30)
gg.editAll('h4B909B', gg.TYPE_BYTE)

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Similar Content

    • By DevShouldListen
      View File Counter attack hack for esport
      This is a fun version to use in video in the game counter attack :
      Features : 
      - Wall hack
      - Radar Hack
      - Aim boost
      Why this cheat ? :
      This script can be use in scrims without any people see it , use wall hack front  of mods and dev and they will not see even if you don't spray in wall
      Why download this script ? : 
      It is a optimize version from  script , using SW gg in the game you can also controle time so don't need to use speed in the script.Using this script you prove to the dev of this game he should really listen player . You can use this script in all version , the game will not be laggy even for some device. Thank to Candy10 for his help.
       
      Submitter DevShouldListen Submitted 02/15/2020 Category LUA scripts  
    • By DevShouldListen
      This is a fun version to use in video in the game counter attack :
      Features : 
      - Wall hack
      - Radar Hack
      - Aim boost
      Why this cheat ? :
      This script can be use in scrims without any people see it , use wall hack front  of mods and dev and they will not see even if you don't spray in wall
      Why download this script ? : 
      It is a optimize version from  script , using SW gg in the game you can also controle time so don't need to use speed in the script.Using this script you prove to the dev of this game he should really listen player . You can use this script in all version , the game will not be laggy even for some device. Thank to Candy10 for his help.
       
    • By SquadRat
      Hello everyone,
      I present a script that allows you to have the stats thoroughly on ayé only
      french and serie A ideal for the career zidane part 1/2
      Video with description: 
       
    • By SquadRat
      View File Free Fifa mobile 20 ayé stats
      Hello everyone,
      I present a script that allows you to have the stats thoroughly on ayé only
      french and serie A ideal for the career zidane part 1/2
      Video with description: 
       
      Submitter SquadRat Submitted 12/16/2019 Category LUA scripts  
    • By RONO_PLAYS
      View File HOW TO MAKE A LUA SCRIPT FOR ANY GAME
       More scripts from the creator
      This is a  template that will help you create a script menu for any game
      Download the apps used in this video:
      lua editor
      GG tester
       
      WATCH THESE VIDEOS TO KNOW HOW TO MAKE A LUA SCRIPT FOR ANY GAME
      PART 1
      WATCH THIS VIDEO TO KNOW HOW TO MAKE A LUA SCRIPT FOR ANY GAME
       
      PART 2:
       
       
      PART 3
       
      Submitter RONO_PLAYS Submitted 04/27/2019 Category Templates  
×
×
  • Create New...