LOS ANGELES — LeBron James gave his 20-year-old son a pep talk before they rose from the Lakers bench. Amid rising cheers, they walked together to the scorer’s table — and then they stepped straight into basketball history.

LeBron and Bronny became the first father and son to play in the NBA together Tuesday night during the Lakers’ season opener, fulfilling a dream set out a few years ago by LeBron, the top scorer in league history.

“That moment, us being at the scorer’s table together and checking in together, it’s a moment I’m never going to forget,” LeBron said. “No matter how old I get, no matter how my memory may fade as I get older or whatever, I will never forget that moment.”

Father and son checked into the game against the Timberwolves simultaneously with four minutes left in the second quarter, prompting a big ovation from a home crowd aware of the enormity of the milestone. The 39-year-old LeBron had already started the game and played 13 minutes before he teamed up with his 20-year-old son for about 2 1/2 minutes of action.

LeBron James is one of the greatest players in NBA history, a four-time champion and 20-time All-Star, while LeBron James Jr. was a second-round pick by the Lakers last summer. They are the first father and son to play in the world’s top basketball league at the same time, let alone on the same team.

“Y’all ready? You see the intensity, right? Just play carefree, though,” father told son on the bench before they checked in, an exchange captured by the TNT cameras and microphones. “Don’t worry about mistakes. Just go out and play hard.”

Their time on court together was fast and furious, just as LeBron promised.

LeBron, who finished the night with 16 points, missed two perimeter shots before making a dunk. Bronny had an early offensive rebound and missed a tip-in, and his first NBA jump shot moments later was a 3-pointer that came up just short. He checked out one possession later with 1:19 left in the second quarter, getting another ovation.

Bronny didn’t play again in the Lakers’ 110-103 victory.

“(I) tried not to focus on everything that’s going on around me, and tried to focus on going in as a rookie and not trying to mess up,” Bronny said.

“But yeah, I totally did feel the energy, and I appreciate Laker Nation for showing the support for me and my dad.”

After the final whistle on the Lakers’ first opening-night victory in LeBron’s seven seasons with the team, father and son also headed to the locker room together — but not before stopping in the tunnel to hug Savannah James, LeBron’s wife and Bronny’s mother. The entire family was in attendance to watch history — on little sister Zhuri’s 10th birthday, no less.

Ken Griffey Sr. and Ken Griffey Jr. also were courtside at the Lakers’ downtown arena to witness the same history they made in Major League Baseball. The two sluggers played 51 games together for the Mariners in 1990 and 1991 as baseball’s first father-son duo.

The Jameses and the Griffeys met during pregame warmups for some photos and a warm chat between two remarkable family lines.

LeBron first spoke about his dream to play alongside Bronny a few years ago, while his oldest son was still in high school. The dream became real after Bronny entered the draft as a teenager following one collegiate season, and the Lakers grabbed him with the 55th overall pick.

“I talked about it years and years ago, and for this moment to come, it’s pretty cool,” LeBron said. “I don’t know if it’s going to actually hit the both of us for a little minute, but when we really get to sit back and take it in, it’s pretty crazy. … But in the moment, we still had a job to do when we checked in. We wasn’t trying to make it a circus. We wasn’t trying to make it about us.

“We wanted to make it about the team.”

LeBron and Bronny joined a small club of father-son professional athletes who played together. The Griffeys made history 34 years ago, and they even homered in the same game on Sept. 14, 1990.

Baseball Hall of Famer Tim Raines and his namesake son also accomplished the feat with the Baltimore Orioles in 2001.

In hockey, Gordie Howe played alongside his two sons, Mark and Marty, with the WHA’s Houston Aeros and Team Canada before one NHL season together on the Hartford Whalers in 1979-80, when Gordie was 51.