See here for how to enter cheat mode.
The Sims 2 · The Sims 2 NDS
The Sims 3
Build Cheats · Gameplay Cheats ·
fr:Les Sims (console)/Codes