Kevin Hart is attached to co-star with LeBron James in the Universal and Imagine Entertainment comedy “Ballers.”

Hart will also co-write the script with Chris Spencer, Harry Ratchford and Joey Wells. Brian Grazer and Michael Rosenberg are producing.

Hart will play the brother of an NBA superstar who gets a chance to prove himself when he and some friends attend a weekend fantasy basketball camp.

Imagine’s Kim Roth will serve as executive producer alongside Hart, James and Maverick Carter of LeBron Inc.

Hart is repped by UTA and 3 Arts Entertainment and can be seen next in Universal’s “Ride Along.” Deadline Hollywood first reported the news.