Grand Theft Auto: San Andreas is played from a third-person perspective in an open world environment, allowing the player to interact with the game world at their leisure. The game is set within the fictional state of San Andreas, which is heavily based on California and Nevada.[a] The state of San Andreas consists of three metropolitan cities: Los Santos, based on Los Angeles; San Fierro, based on San Francisco; and Las Venturas, based on Las Vegas. The single-player story follows Carl "CJ" Johnson, who returns home to Los Santos after learning of his mother's murder. CJ finds his old friends and family in disarray, and over the course of the game he attempts to re-establish his old gang, clashes with corrupt cops, and gradually unravels the truth behind his mother's murder. The plot is based on multiple real-life events in Los Angeles, including the rivalry between the Bloods and Crips street gangs, the crack epidemic, the Rampart scandal, and the 1992 Los Angeles riots.
Upon its release, the game was acclaimed by many reviewers who praised the music, story and gameplay. It became the best-selling video game of 2004, and has sold over 27 million copies as of 2011; it remains the best-selling PlayStation 2 game of all time. The game, like it's predecessors, is cited as a landmark in video games for its far-reaching influence within the industry. The violence and sexual content of San Andreas has been the source of public concern and controversy. In particular, a player-made software patch, dubbed the "Hot Coffee mod", unlocked a previously hidden sexual mini-game.