(LOS ANGELES) -- Lindsay Lohan has agreed to three months in mandatory rehab after arriving late to court Monday.
Under the terms of a deal between Lohan and prosecutors in Los Angeles, the 26-year-old will also have to undergo 18 months of psychological therapy and complete 30 days of community service. She will also have to pay an undisclosed fine and restitution to the courts. The judge in the case characterized the 90-day rehab stint as "locked" -- meaning Lohan can't leave rehab early. In return, a 180-day jail sentence Lohan faces can be waived if she follows all the terms of deal.
Monday's court hearing stemmed from charges that she lied to police about whether she was behind the wheel in a June car crash that sent her to the hospital briefly. Lohan pleaded not guilty to three misdemeanor charges filed after the accident: reckless driving, lying to police and obstructing officers from performing their duties.
Judge James Dabney walked into the courtroom when the trial was supposed to start, at 11:30 a.m. Eastern time, declared, "I understand we're waiting for the defendant," and promptly left the courtroom.
Lohan was apparently flying from New York to L.A. courtesy of a private jet. She tweeted around 7 a.m. ET Monday, “Thanks Mr. Pink for the private jet see you all in a few hours in LA @drinkmrpink @sheerazhasan.” Mr. Pink is an energy drink.
Lohan also cut close her first court hearing in the case in January, when she arrived in Los Angeles that morning after taking an early-morning flight from New York.
Lohan faced up to 245 days in jail for violating her probation in a 2011 theft case. Her probation was revoked in December as a result of the charges stemming from the accident.
It appears Lohan’s attorney, Mark Heller, was able to cut a deal with prosecutors. He told ABC News last month, “If nothing is facilitated, we will move forward with the trial.”
At a hearing earlier this month, Judge Dabney criticized Heller’s apparent lack of understanding of California state law, noting mistakes in the lawyer’s filings and arguments. He ordered an attorney who’s competent in California law to join Heller at trial.
Copyright 2013 ABC News Radio