Rockstar Games does not officially support cheat codes in the definitive editions, and using third-party trainers/mods in online modes (GTA Online) results in permanent bans. Even in single-player, cheats disable achievements and can break mission scripting.
The satisfaction of mastering San Andreas' systems—driving, shooting, territory control—far outweighs a "god mode" playthrough.