Jump to content

» «

Could someone introduce me shortly to gta5 hashes?

1 reply to this topic
  • RizoN

    Player Hater

  • Members
  • Joined: 27 Jun 2017
  • None


Posted 18 November 2017 - 11:38 PM

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:

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

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

Thanks for reading :)

  • Unknown_Modder

  • Members
  • Joined: 07 May 2015
  • Germany


Posted 19 November 2017 - 11:17 AM Edited by Unknown_Modder, 19 November 2017 - 11:21 AM.

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