• BREAKING NEWS ABC shows live and on-demand -- Download the WATCH ABC app!

OTRC: Jason Segel to play '80s undercover cop in movie

Jason Segel appears in a promotional photo for the CBS series 'How I Met Your Mother.' (CBS)

Jason Segel is set to play an undercover cop in a comedy film is inspired by the true story of a former policeman who infiltrated the New Jersey criminal underworld in the 1980s.

A spokesperson for Segel, star of the sitcom "How I Met Your Mother," confirmed a report by The Hollywood Reporter, which said Jason Micallef will write the screenplay for the movie, called "Undercover Cop." He also penned the original comedy "Butter," which stars Hugh Jackman.

Segel has in recent years appeared in comedy movies such as "Forgetting Sarah Marshall" and "I Love You, Man" and finished shooting the film "Bad Teacher" alongside Cameron Diaz and Justin Timberlake. The movie is set for release in June.

Segel is currently filming the new film "The Muppets," which is due out in November. The actor co-wrote the script of the film, which also stars Zach Galifianakis of the 2009 R-rated comedy blockbuster "The Hangover."

Segel told OnTheRedCarpet.com in July that he "couldn't be more excited to bring the Muppets back to their late '70s, early '80s glory."

The Muppets are group of puppets the late Jim Henson created in the mid-1950s. which include Kermit the Frog, Miss Piggy and the rowdy "Animal". They starred in several of their own television shows and spinoffs throughout the years and the franchise has also spurred several films, such as "The Muppets Take Manhattan" in 1984, "Muppets from Space" in 1999.

The movie "The Muppets" also stars Amy Adams, Emily Blunt, Mickey Rooney, British funnyman Ricky Gervais, Charles Grodin and television chef Rachael Ray. Alan Arkin, Jean-Claude Van Damme, Billy Crystal and Wanda Sykes are set to make cameos.

(Copyright ©2018 OnTheRedCarpet.com. All Rights Reserved.)