Quantcast

Jump to content

» «
Photo

All Text Labels

16 replies to this topic
Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#1

Posted 08 January 2017 - 12:44 AM Edited by Unknown_Modder, 04 September 2017 - 10:54 PM.

First of all, I don't know if this helps anybody but I thought why not post this as it might help someone for their scripts or researching the game.
For me personally it is much more comfortable than using OpenIV.

EDIT: Here's the complete list (up-to-date for build 1180).
 
By the way, the list looks like this:
[...]
/* GXT2 Name: GLOBAL | Entries: 35579 */

MPTV_TICK0 = Suspect identified as known criminal going by the streetname "~a~".
B_DHP1 = Minisub
SHR_H_MISFIRE = Misfiring in the Shooting Range caused the round to end and the Cops to be alerted.
0x00089FF9 = Lamar
0x0008EC5C = You do not have enough money to purchase this interior.
0x000B5C1C = Are you sure you want to launch this Club Work?
0x000D0FF3 = Layered Bob
0x000E7C17 = Parachute dangerously.
0x000F9329 = ~BLIP_INFO_ICON~ Improving each character's stats will improve their performance on missions throughout the game.
0x001154C4 = LSPD helicopter units have lost sight of wanted suspect ~a~ in the ~a~ area. Police have appealed for information.
[...]
Since _GET_LABEL_TEXT and other related natives only accept char* (the name of the text label), you can use this to get the text by hash if you need to:
__int64 funcAddress = Pattern::Scan("48 89 5C 24 08 48 89 6C 24 18 89 54 24 10 56 57 41 56 48 83 EC 20");

typedef LPSTR(__thiscall* GetLabelTextByHashFunc_t)(__int64 This, unsigned int hash);
GetLabelTextByHashFunc_t GetLabelTextByHashFunc = (GetLabelTextByHashFunc_t)funcAddress;

__int64 patternAddress = Pattern::Scan("84 C0 74 34 48 8D 0D ?? ?? ?? ?? 48 8B D3");
__int64 address = patternAddress + *(int*)(patternAddress + 7) + 11;

inline LPSTR GetLabelTextByHash(unsigned int labelHash)
{
    return GetLabelTextByHashFunc(address, labelHash);
}
  • ikt, Skorpro, Fireboyd78 and 2 others like this

qiangqiang101
  • qiangqiang101

    I'm Not MentaL

  • Members
  • Joined: 02 Feb 2010
  • Malaysia

#2

Posted 13 March 2017 - 06:42 PM

how to use Pattern::Scan in .NET?


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#3

Posted 13 March 2017 - 06:55 PM Edited by Unknown_Modder, 13 March 2017 - 06:56 PM.

how to use Pattern::Scan in .NET?

Idk, I've never used a .NET language for pattern scans, google it.


qiangqiang101
  • qiangqiang101

    I'm Not MentaL

  • Members
  • Joined: 02 Feb 2010
  • Malaysia

#4

Posted 14 March 2017 - 07:26 AM

 

how to use Pattern::Scan in .NET?

Idk, I've never used a .NET language for pattern scans, google it.

 

 

well, i did, turns out it only can use when import a C++ dll


ikt
  • ikt

    _

  • Members
  • Joined: 02 Oct 2006
  • None

#5

Posted 14 March 2017 - 07:32 AM

Well, you can always import Windows stuff.

https://www.unknownc...ttern-scan.html


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#6

Posted 14 March 2017 - 10:07 AM

 

 

how to use Pattern::Scan in .NET?

Idk, I've never used a .NET language for pattern scans, google it.

 

 

well, i did, turns out it only can use when import a C++ dll

 

you can do signature scanning in .net, but i dont think you can call unmananged functions from a pointer in .net


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#7

Posted 14 March 2017 - 06:49 PM

The list has been updated to 1.0.1011.1


ikt
  • ikt

    _

  • Members
  • Joined: 02 Oct 2006
  • None

#8

Posted 14 March 2017 - 07:13 PM

Offtopic, but are you two "unknown modders" related somehow anyhow? Strikes me that both of you do have the same name and do reversing stuff.


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#9

Posted 14 March 2017 - 07:45 PM

Offtopic, but are you two "unknown modders" related somehow anyhow? Strikes me that both of you do have the same name and do reversing stuff.

No, he is also known as zorg93 or drp4lyf and said he chose the name when he was not so "famous" yet and I just suck at naming so I chose the name because I mod games and was "unknown" when I started.

  • ikt likes this

unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#10

Posted 15 March 2017 - 01:25 AM

 

Offtopic, but are you two "unknown modders" related somehow anyhow? Strikes me that both of you do have the same name and do reversing stuff.

No, he is also known as zorg93 or drp4lyf and said he chose the name when he was not so "famous" yet and I just suck at naming so I chose the name because I mod games and was "unknown" when I started.

 

my cover has been blown

  • ikt and Scriptkiddy1337 like this

Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#11

Posted 19 April 2017 - 12:05 PM Edited by Unknown_Modder, 19 April 2017 - 04:37 PM.

I've updated the list once again. Known label hashes have been replaced by their name (currently only 18074).

Edit: Also fixed wrong format for some strings containing \n.

  • jedijosh920 likes this

Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#12

Posted 24 April 2017 - 05:56 PM

Just replaced these hashes with the correct names. Found them while looking at cash related functions.

0x3AAC4241 = PURCH_FAILED
0xA11DF0BD = CASH_LMT_DAILY
0xAC349FE9 = CASH_LMT_BALANCE

(Didn't even know there was a limit on how much shark card money you can purchase)

  • jedijosh920 and ins1de like this

Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#13

Posted 26 April 2017 - 12:02 AM

Made 3 changes in the last hour because I f*cked up so badly lol. But anyway, 152 hashes have been replaced.


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#14

Posted 15 June 2017 - 07:19 PM Edited by Unknown_Modder, 15 June 2017 - 07:20 PM.

Updated the list for build 1103. Oh and f*ck you Take-Two.

  • ikt and Kryptus like this

uNiverselEgacy
  • uNiverselEgacy

    Player Hater

  • Members
  • Joined: 15 Jul 2015
  • United-States

#15

Posted 06 July 2017 - 05:06 PM

How about gxt thats not always loaded like 'MOD_MNU'? It would be great to include those as well.  :)


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#16

Posted 06 July 2017 - 05:09 PM Edited by Unknown_Modder, 06 July 2017 - 05:19 PM.

How about gxt thats not always loaded like 'MOD_MNU'? It would be great to include those as well.  :)

Those are included as well, MOD_MNU starts at line 179216.


uNiverselEgacy
  • uNiverselEgacy

    Player Hater

  • Members
  • Joined: 15 Jul 2015
  • United-States

#17

Posted 06 July 2017 - 10:05 PM

 

How about gxt thats not always loaded like 'MOD_MNU'? It would be great to include those as well.  :)

Those are included as well, MOD_MNU starts at line 179216.

 

Oh my bad. :(  The page was probably not fully loaded last time.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users