Comedian Zach Galifianakis has landed lead roles in Todd Phillips' comedy Hangover for Warner Bros. and also the HBO pilot Bored to Death.

According to The Hollywood Reporter, in the film Hangover, Galifianakis, Bradley Cooper and Ed Helms play best buddies at a wild Las Vegas bachelor party who lose the groom just hours before his wedding. Legendary Pictures is producing with Warners, and filming is set to begin this weekend.

RELATED: The Hangover Is Streaming on Netflix This April, But Not for Long

In Bored to Death, Galifianakis plays Ray, a struggling comic book artist and best friend to Jonathan (Jason Schwartzman), an alcoholic writer who pretends to be a private detective. Ted Danson also stars in the project from writer Jonathan Ames and director Alan Taylor.