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.

Published by Matt Gibbs
Published on Nov 23, 2023Last modified on Dec 3, 2024 09:21 PST

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
Fans have begun wondering if the shutdown of the Liberty City Preservation Project means Liberty City is coming to GTA 6.
By Caleb Sama January 17, 2025
GTA Online's latest update is challenging players to infiltrate Fort Zancudo and steal a Tula plane.
By Ray Ampoloquio January 15, 2025
The rising costs of video game development - and corporate greed - could push AAA games towards adopting a $100 price tag and Grand Theft Auto 6 could be the first to break precedent.
By Ray Ampoloquio January 14, 2025
The modding team behind the popular mod spent six years painstakingly recreating Grand Theft Auto 4's setting inside Grand Theft Auto 5.
By Ray Ampoloquio January 14, 2025
Rockstar Games is breaking tradition by not releasing its weekly GTA Online update and Newswire post for the first time in over a decade.
By Ray Ampoloquio January 8, 2025