Why There Are Two Different Codes For Each GTA San Andreas Cheat

From GTA BOOM Wiki

Exploring the unexpected side effects of GTA's hash code cheats.

The Grand Theft Auto series has long been celebrated for its immersive world and intricate gameplay. Adding to its allure are iconic cheat codes, which have been a staple of the series.

Recently, Obbe Vermeij, a former developer at Rockstar North, shared some intriguing technical details about the ingenuity that went into creating the cheats for the GTA Trilogy (GTA 3, GTA San Andreas and GTA Vice City), offering fans a unique glimpse into the games' development process.

Vermeij explained the use of hash codes in implementing cheat codes in the GTA series. Instead of storing the cheat phrases in plain text, the developers converted them into numerical hash codes. This method added a layer of security, making it more challenging for hackers to uncover the cheats.

For example, the cheat code "ILOVESCOTLAND," which changes the weather to rain in GTA 3 on PC, was stored not as text but as the number 983.

So, instead of the game engine simply comparing the game's keypresses to the cheat codes to find out when one should triggered, which would be very easy for a hacker to uncover, it would instead calculate the hash code for the last several keypresses and then compare those to find a match with a cheat.

San-andreas-andrenaline-mode-poster.jpeg
The big head mode cheat, a new cheat that was actually only introduced in the "Definitive Edition" version of the GTA Trilogy.

However, this technique had an unintended side effect. Since different phrases could hash to the same number, random inputs by players sometimes inadvertently triggered cheats. This phenomenon explains why, upon the discovery of cheats, players would often stumble upon random strings that activated the same cheat effects as the intended "official" phrase.

This is best illustrated in the cheat codes for GTA San Andreas on PC, a title which coincidentally has the most number of different cheat codes in a GTA game to date, and the most number of "alternate" codes. For instance, both "STINGLIKEABEE" and "IAVENJQ" activate Super Jump, or "TURNUPTHEHEAT" and "OSRBLHH" both raise your Wanted Level, in each case because they hash to the same number associated with the relevant cheat.

Vermeij's revelations offer a fascinating perspective on the complexities and unintended consequences of game development. More significantly, they grant fans an especially rare glimpse into the mythical and mysterious practices of Grand Theft Auto's developer, Rockstar Games.


Latest News
Gta-online-cayo-perico-heist-challenge.png
Double rewards on Cayo Perico activities this week will be part of a month-long Heist Challenge with massive potential payouts.
Caleb.png
By Caleb Sama November 6, 2024
Gradual-gta-online-revenue-decline-expected-take-two-gta-6-release-1.jpg
Take-Two is preparing for GTA 6 while giving GTA 5 a grand send-off with new updates as it outperforms expectations as it nears its end.
RayIanWrites.jpeg
By Ray Ampoloquio November 6, 2024
Take-two-ceo-confident-gta-6-performance-xbox-series-s-1.jpg
Take-Two Interactive's CEO remains confident in Grand Theft Auto 6's performance despite the Xbox Series S's limitations.
RayIanWrites.jpeg
By Ray Ampoloquio November 6, 2024
Nagasaki-shinobi-gta.png
GTA+ members are getting the Nagasaki Shinobi motorcycle, biker gear, and sweet discounts on clubhouses and weapons.
Caleb.png
By Caleb Sama November 6, 2024
Ex-gta-developer-shuts-down-famous-gta-5-theory-1.jpg
After over a decade of trying to solve the GTA 5 mystery, one of the game's developers has officially pulled the rug.
RayIanWrites.jpeg
By Ray Ampoloquio November 5, 2024