The error is a common crash in modded versions of Grand Theft Auto: San Andreas

Gfxhack.asi is a popular .asi plugin designed to improve the game's engine by:

: The plugin is highly sensitive to the executable version. Using it on a Steam version or an un-downgraded version of GTA SA often leads to immediate crashes.

Change the load order. Rename gfxhack.asi to zzz_gfxhack.asi . The ASI loader loads files alphabetically. Loading gfxhack last forces it to override SilentPatch, which can sometimes resolve the RangeError.

In the world of retro-game preservation and reverse engineering, that word was a curse. It didn't mean the program had a glitch; it meant the program had stepped outside reality. It meant an index variable— i , x , y —had tried to access a slot in an array that simply didn't exist.