LOS ANGELES (AFP) - Troubled actor and Oscar-winning director Mel Gibson will pay his ex-girlfriend $750,000 in a deal which grants the former couple joint custody of their young daughter, a judge said Wednesday. Details of the legal agreement between the Braveheart star and Oksana Grigorieva were unveiled after the Los Angeles Superior Court announced last Friday that a settlement had been reached. Gibson, 55, who appeared subdued in court, will also give a house to their daughter Lucia in a deal that ended years of public feuding between the estranged couple, said judge Peter D. Lichtman. Grigorieva and 22-month-old Lucia will be allowed to live in the suburban Los Angeles home until the childs 18th birthday, with the sale of that house then to be part of the daughters trust. After the judge read details of the settlement, Gibson stood up and said, Id like to say thanks, your honor, for bringing this matter to a reasonable conclusion. Grigorieva, a 40-year-old Russian musician, thanked the judge and promised to do, whats best for Lucia. The $750,000 payment will be made in three $250,000 installments through Jan. 1, 2016, the court said. The settlement did not require Gibson to pay child support or any alimony to Grigorieva. The settlement also stipulates that neither party can produce any books or articles, or additional tape, about their relationship, a reference to leaked telephone conversations in which an enraged Gibson screamed at Grigorieva. Gibson wore a two-piece blue suit and arrived with his attorney at the courtroom where dark-haired Grigorieva was dressed in black and already seated, surrounded by her lawyers.