Jim Carrey in talks to star in ‘Loomis Fargo’ bank heist comedy from Relativity Media (EXCLUSIVE)

Relativity Media is in negotiations to acquire “Loomis Fargo,” a bank heist comedy that Jim Carrey is in talks to topline for director Jared Hess (“Napoleon Dynamite”) and producers Lorne Michaels and John Goldwyn.

Pic, which was originally in development at Paramount, is based on the true story of four dim-witted Southerners who pulled off one of the biggest heists in American history, robbing $17 million from a Loomis Fargo armored truck.

Emily Spivey penned the first draft, which Jody Hill and Danny McBride then rewrote, with Chris Bowman and Hubbel Palmer writing the latest draft.

Carrey is making a deal to play Dave Ghantt, a military veteran and night guard at the armored car company Loomis Fargo, who served as the ringleader of the band of thieves.

Producers are eyeing an April start date in North Carolina.

In addition to “Napoleon Dynamite,” Hess previously wrote and directed “Nacho Libre” and “Gentlemen Broncos.” Helmer is also developing “The Pet” for Disney and producer Scott Rudin. He’s repped by UTA and John Sloss.

Carrey is currently filming Jeff Wadlow’s Universal sequel “Kick-Ass 2: Balls to the Wall.” He next stars opposite Steve Carell in the New Line comedy “The Incredible Burt Wonderstone.” He’s repped by WME, Mosaic and attorney Deborah Klein.