Dwyane Wade capped his career in style, with one last triple-double before heading off to retirement.

Wade had 25 points, 11 rebounds and 10 assists in his final NBA game, which the Nets won by beating the visiting Heat 113-94 on Wednesday night.

With close friends LeBron James, Chris Paul and Carmelo Anthony leading the cheers from their courtside seats, Wade had his fifth career triple-double in three quarters. He fittingly secured it with a pass to Udonis Haslem, his teammate of 15 years who plays sparingly now and made his only start of the season.

A night after scoring 30 points in his final game in Miami, Wade showed one more time that he’s walking away with his skills intact.

He played 36 minutes, dribbling out the shot clock the final time he had the ball before checking out with 10 seconds remaining. Then it was time for a postgame celebration on the court with teammates and friends.

LaMarcus Aldridge had 34 points and 16 rebounds, and the Spurs beat the Mavericks 105-94 in Dirk Nowitzki’s final game. Nowitzki finished with 20 points and 10 rebounds in the finale of his 21-season career, all with the Mavericks. ... Luke Kennard scored 27 points, and Andre Drummond added 20 points and 18 rebounds as the Pistons locked up the Eastern Conference’s final playoff spot with a 115-89 victory over the Knicks. ... Russell Westbrook got his 34th triple-double of the season as the Thunder beat the Bucks’ backups 127-116 to nail down the sixth seed in the West.