Sony has recruited Joe Carnahan to write the latest draft of the script for its adaptation of the popular video game “Uncharted.”

Carnahan, who is also an accomplished director and producer, told Variety that he’s unable to also helm, unless production is pushed back, due to schedule constraints. “Bad Boys 3” will be his next directing gig. Production on the sequel gears up early next year — after Will Smith wraps David Ayer’s “Bright.”

“In a perfect world I would love to do both, but right now, I’m only on board to write the script,” he said.

“Uncharted” is an action-adventure film based on the critically-acclaimed and top-selling PlayStation video game series, which follows the adventures of treasure hunter Nathan Drake.

Carnahan said entering the world of Nathan Drake is a dream come true.

“Archaeology today is in itself an antiquity, but that world has always fascinated me. Especially when you go to a museum today and wonder how a piece got there to begin with,” he said. “Plus, the property itself is so popular that it was hard to turn down an opportunity to work on it.”

The film will be a co-production between Arad and Atlas Entertainment Production, and will be produced by Charles Roven, Avi Arad, Alex Gartner, and Ari Arad. Sony creative exec Jonathan Kadin is overseeing the project.

The video game series was developed by Naughty Dog and published by Sony Computer Entertainment America.

In addition to directing “Bad Boy 3,” which reunites Smith and Martin Lawrence, Carnahan is also developing and producing the Frank Grillo-starrer “Wheelman” for Netflix.

Carnahan is repped by CAA.