Scott Caan has replaced Shia LaBeouf in 'Rock The Kasbah'.

The 'Hawaii Five-0' star is in talks to take on one of the lead roles in Barry Levinson's all-star comedy after the troubled actor pulled out of the project last month, according to The Hollywood Reporter.

LaBeouf had surprisingly signed on in January after declaring he intended to retire from acting and ''all public life'' following ''attacks against his artistic integrity'', before dropping out a few weeks later.

Bill Murray, Bruce Willis, Kate Hudson, Zooey Deschanel and Danny McBride all star in the tale of a has-been rock manager's (Murray) musical misadventures in Afghanistan.

When he finds himself in Kabul penniless and without his passport, he discovers a young girl with an amazing voice and decides to manage her through Afghanistan's version of 'American Idol.'

Caan will play a military con man, who along with his partner (McBride), hustles Murray in the war-torn city.

Shia has had a difficult few months, culminating in him storming out of a 'Nymphomaniac' press conference in Berlin before arriving on the red carpet for the film's German premiere wearing a paper bag on his head that read, ''I am not famous anymore.''