There are no cheat codes for Cars (GameCube). Rainbow Studios / THQ did not include a cheat menu, Action Replay codes were never widely documented, and the game lacks debug modes accessible via button combos.
Use Dolphin Emulator + Action Replay / Gecko codes created via RAM search (Cheat Search) for specific values (Boost Meter, Lap Time, Position). No public database exists. Not on real hardware.