Load your game and take control of CJ (not during a cutscene).
On PlayStation or Switch, press the button sequence quickly. On PC, type the letters during gameplay.
'Cheat activated' appears on screen when it works.
FAQ
What is the max muscle cheat in GTA San Andreas?
PC: type BUFFMEUP. PlayStation: Triangle, Up, Up, Left, Right, Square, Circle, Left. Switch: X, Up, Up, Left, Right, Y, A, Left.
Does it disable achievements or break my save?
Some cheats can break missions or stats if you save afterwards, and on modern re-releases they may disable trophies or achievements. Keep a save from before using cheats.