The answer supplied here — "you get 1,000,000" — restates the question rather than answering it, so it should not be treated as guidance.
Gran Turismo 3: A-Spec has no money cheat in the retail release. Credits are earned by racing, and the efficient route is to repeat the events with the best credit-per-minute return once you have a car competitive in them, entering the endurance and manufacturer-specific series as they unlock. Licence tests also pay out and are worth clearing early.
If a save-editing route is what you are after, that requires third-party tools and carries the usual risk of corrupting your progress. Back up the save first, and be aware that an edited garage tends to remove the satisfaction that the grind was there to provide.