All GTA, all day, since 2012

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

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.

The big head mode cheat, a new cheat that was actually only introduced in the "Definitive Edition" version of the GTA Trilogy.
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.

Jump into our relaunched GTA forums to discuss this article along with the latest GTA 6 rumors & more!

Matt Gibbs
Matt Gibbs // Articles: 273
Driven by a lifelong obsession with Grand Theft Auto, ever since first renting GTA III in 2001, Matt created the ultimate online resource for fans - GTA BOOM - where as owner and developer he continues enhancing its game guide library and news hub to deliver everything GTA enthusiasts might want. // Full Bio