There are no cheat codes for Need for Speed: Hot Pursuit 2 on PS2. Black Box / EA Seattle omitted them intentionally — the game is designed around progression (unlock cars/tracks via Championship).
The grind is the game. The car roster (30+) is one of the series' best — earn them.