Vehicle Racing Help

So I have been tinkering around for a few hours on how to make a race that involves obstacles. Basically, the player races against an NPC for extra money. I have made it to the point that if the player wins, he/she gets the money, however, if the NPC wins, he/she looses the race. How would I go about making it so when the NPC crosses the finish line, the race ends and displays a message that the race is over? 
Bump.
Boring way? Make the vehicle just a in-game representation of the race, and actually work on a time-limit race (with a hidden timer). Put boosts that raise the actor's speed or ways for the actor to slow the opponent (adding time to the hidden timer).
Boring way? Make the vehicle just a in-game representation of the race, and actually work on a time-limit race (with a hidden timer). Put boosts that raise the actor's speed or ways for the actor to slow the opponent (adding time to the hidden timer).



That is interesting, however, it does not apply to why I need the drag racing elements. I already have car chase mini game.
I am still in need of assistance for this.
parallel process, waits at least 15 frames,


if


 event.x = finish.x


  then if event.y = finish.y


   then you lost sucka


  end if


 end if

Original thread: https://forums.rpgmakerweb.com/threads/vehicle-racing-help.55671/