On Koopa Troopa beach, instead of going left at that circular rock where all the ramps are, go left and there will be an extra bit of road.
Drive along it, watching out for crabs and you should get into 1st position!
More tricks, tips and cheats for this game are right here - Mario Kart 64 cheats
Comments for this hint