Mark Wahlberg will star with NBA superstar LeBron James in the basketball fantasy camp comedy “Ballers.”

Wahlberg revealed that he was in discussions for the role during an appearance Tuesday on “The Tonight Show Starring Jimmy Fallon,” showing a photo of himself with James at his home gym.

“He and I are talking about doing a movie together,” he said. “It’s actually a great idea. It’s based around the fantasy league, so these guys get to go to one of these fantasy camps, and me and LeBron have a situation.”

The movie, set up at Universal and Imagine Entertainment, was first unveiled three years ago with Kevin Hart attached to co-star as the brother of an NBA superstar at a weekend fantasy camp. Hart is no longer attached.

“Entourage” creator Doug Ellin has come on board to write the script. Earlier drafts were written by Hart with Chris Spencer, Harry Ratchford, and Joey Wells.

Brian Grazer and Michael Rosenberg are producing. It’s unclear whether Wahlberg will produce.

Wahlberg will be seen next in Lionsgate’s action-adventure “Deepwater Horizon,” which opens on Sept. 30.

James received positive responses for his comic talent in portraying himself as Bill Hader’s friend in Amy Schumer’s romantic comedy “Trainwreck” last year.

Here’s a clip of Wahlberg’s “Tonight Show” interview.