Quantcast

Jump to content

» «
Photo

Could someone introduce me shortly to gta5 hashes?

1 reply to this topic
RizoN
  • RizoN

    Player Hater

  • Members
  • Joined: 27 Jun 2017
  • None

#1

Posted 4 weeks ago

Hello there. I am kind of a noob regarding question I'm about to ask.
What are those 'hashes'?
What can be done with them, and can I and how may I use them to achieve something?
Are they static or they change per every game update?

The hashes which I am talking about are the ones here:
http://www.dev-c.com/nativedb/

For instance:
Ped GET_PLAYER_PED(Player player// 43A66C31C68491C0 6E31E993

What can i do with // 43A66C31C68491C0 6E31E993?




Thanks for reading :)


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#2

Posted 4 weeks ago Edited by Unknown_Modder, 4 weeks ago.

The 32-bit hashes are jenkins hashes of the native name. These are used for native invocation in the PS3 and X360 version of the game.

 

The 64-bit hashes (which aren't really hashes but "identifiers" which are randomly generated) are used for native invocation in the PS4, X1 and PC version of the game.

These, however, change every game update to make the life of reverse-engineers harder.

 

You as a "normal user" don't really need to care about those since Script Hook V, for instance, (and basically every script hook) has a translation table which translates the original identifier that you use when calling natives to the most recent one.

 

Example: The Script Hook V SDK defines GET_PLAYER_PED like this

static Ped GET_PLAYER_PED(Player player) { return invoke<Ped>(0x43A66C31C68491C0, player); } // 0x43A66C31C68491C0 0x6E31E993




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users