On 2 June 2018, Martínez converted a late penalty kick against Philadelphia Union to notch his fifth MLS hat-trick, tying the league record for hat-tricks and doing so faster than any other player in league history. He broke the record for hat-tricks on 21 July 2018 against DC United, after only 44 games.
He scored the only goal for the MLS All-Stars in the 2018 MLS All-Star Game against Juventus, a 1–1 draw, and was named MVP.
On 24 August 2018, he scored his 28th goal of the season, a game winner in Orlando City, to break the league single-season record of 27, held by Roy Lassiter, Chris Wondolowski, and Bradley Wright-Phillips. After failing to capitalize on numerous opportunities, Martínez utilized his quick footwork to cut back against the defender and then chip Joe Bendik to set the record in just his 26th match. He was named MLS Player of the Month for August 2018.