Jim Carrey is the screenwriter of Ace Ventura: Pet Detective.
Ace Ventura : Pet Detective ( or simply Ace Ventura , or also simply Pet Detective ) is a 1994 American mystery comedy film directed by Tom Shadyac , and co-written by and starring Jim Carrey . Jim Carrey . His first leading roles in major productions came with Ace Ventura : Pet Detective ( 1994 ) , Dumb and Dumber ( 1994 ) , The Mask ( 1994 ) , and Ace Ventura : When Nature Calls ( 1995 ) , as well as a supporting role in Batman Forever ( 1995 ) and a lead role in Liar Liar ( 1997 ) .