LeBron James had 40 points and 16 assists, Dwyane Wade scored 39, and the Heat pushed their winning streak to 12 games by outlasting the Sacramento Kings, 141-129, in double overtime Tuesday night in Miami.

Ray Allen added 21, Chris Bosh finished with 15, and Chris Andersen had 10 for the Heat, who remained six games clear of second-place Indiana in the Eastern Conference standings.

Miami’s 12-game winning streak is the NBA’s longest and ties the second-longest in franchise history.

Marcus Thornton scored 36 points for Sacramento, the most by any reserve in the NBA this season. DeMarcus Cousins finished with 24 points and 15 rebounds, Tyreke Evans added 26 points, John Salmons 15, and Isaiah Thomas 14 for the Kings.

James became the first NBA player to finish with at least 40 points and 16 assists since Kevin Johnson — now the mayor of Sacramento — had 42 and 17 for Phoenix against Denver on April 3, 1994.

In the first OT, the Kings had a chance for the late lead and potentially the win, but Thomas had a layup blocked by Bosh, and Allen grabbed the rebound for the Heat with 5.7 seconds left.

Pacers 108, Warriors 97 — David West had 28 points and seven rebounds, and Indiana overcome the ejection of Roy Hibbert following a fourth-quarter scuffle to beat Golden State in Indianapolis

West also was called for a technical foul, along with the Warriors’ David Lee, Stephen Curry, and Klay Thompson, for the altercation that began with 6:10 remaining in the game.

Gortat hit a runner with 13 seconds left in regulation to send the game to overtime and scored on a hard drive with 45 seconds left in the extra period.

Cavaliers 101, Bulls 98 — Dion Waiters scored 25 points to help make up for the absence of Kyrie Irving, and visiting Cleveland snapped an 11-game losing streak against Chicago.

While Irving rested a sore right knee in street clothes on the sideline, Waiters converted a fadeaway jumper and a layup before Tyler Zeller drove along the baseline for a layup that helped Cleveland open an 87-78 lead with 7:33 left in the game.

Nets 101, Hornets 97 — Deron Williams scored 33 points, Brook Lopez added 20 while playing against his twin brother, Robin, and Brooklyn snapped a two-game skid with a victory in New Orleans.