There's no single cheat to "beat" or skip to the end of GTA: San Andreas. Cheats (PS2/PC/Xbox) spawn weapons, vehicles, change weather, or alter wanted level—they don't advance story missions.
Cheats disable achievements/trophies on remasters and can corrupt saves if misused. Play through—the story is the point.