In Grand Theft Auto Online, you can use the Content Creator to place checkpoints and create a custom Race for you and your friends to compete in.
To win, you must progress through the checkpoints in the correct order. The player who does so fastest, wins the race.
Checkpoint options include:
Warp the camera between the placed Checkpoints and Starting Grid