The victory was Hamlin's second in the truck series and came as the championship standings were significantly jumbled.
Ty Dillon, who has led since mid-September, cut a tire with 48 laps to go and went from running sixth to finishing 28th.
James Buescher, only one point behind Dillon to start the day, finished 18th but assumed the points lead by 21 over Dillon.
The final eight laps featured a mad dash and Nelson Piquet Jr. wound up second, angering a lot of drivers with his aggressive driving.
Joey Coulter was third, Crafton finished fourth and Scott Riggs was fifth.