You are already competing against your opponents in online games, so racing with a friend in this game is not possible. So you can enjoy this game with your friends, but not start racing with them.