This can be done online. Me and my friend played a career multi-player race on the Nissan track while trying to boost each others online credits. It was just me and him racing. Winner gets the credits, loser gets nothing. We took turns winning.
In the case of this achievement, he had crashed and I ended up like half a lap ahead of him when I finished. Achievement unlocked.