LOS ANGELES (AP) — Lindsay Lohan accepted a plea deal on Monday in a misdemeanor car crash case that includes 90 days in a locked-down rehabilitation facility that she won't be able to leave.
The 26-year-old actress, who has struggled for years with legal problems, pleaded no contest to reckless driving, lying to police and obstructing officers who were investigating the accident involving the actress in June.
She was also found in violation of her probation in a 2011 necklace theft and sentenced to 180 days in jail. However, she will be able to avoid jail time if she complies with the conditions of her plea deal that also includes 30 days of community labor and 18 months of psychological therapy.
Before the "Mean Girls" actress left the courtroom, Superior Judge Superior Court Judge James R. Dabney offered her a suggestion.
"Don't drive," he said.
The hearing had been set to begin at 8:30 a.m., and Lohan arrived after 9 a.m. looking slightly frazzled in a cream ensemble.
Her lawyers and a prosecutor met with the judge in chambers for more than two hours before Lohan entered the plea.
Attorney Mark Jay Heller, who represents Lohan, left the chambers several times to confer with her in a courtroom hallway.
Lohan previously pleaded not guilty to the charges.
Lohan reportedly missed her original Sunday night flight from New York to Los Angeles, instead traveling on a private plane provided by a Los Angeles-based energy drink company for which she has made promotional appearances.
"Thanks Mr. Pink for the private jet see you all in a few hours in LA," she tweeted early Monday.
Since a pair of arrests for driving under the influence in 2007, Lohan has resolved her numerous court problems without ever going to trial.
Instead she has faced judges who have sentenced her to rehab and counseling, which even her current attorney acknowledges have not completely helped the troubled actress.
Lohan entered Monday's hearing with a lawyer whose competence has been questioned by a judge, and another set of attorneys waiting in the wings to take over.
She did not, however, have her longtime advocate, Shawn Holley, present. Holley left the case this year after keeping the actress out of jail for significant periods of time on probation violations and the allegations in 2011 that she took a $2,500 necklace without permission from an upscale jeweler.
The former Disney star has been under some form of probation since 2007, and her court troubles have stifled a once-promising career.
Lohan's return to acting last year in the Lifetime movie "Liz & Dick" was widely panned by critics and viewers. Her upcoming film by Bret Easton Ellis, "The Canyons," co-stars porn star James Deen.
Prosecutors decided last year that Lohan would not face criminal charges after being accused of clipping a man with her car outside a Manhattan nightclub.
Prosecutors wouldn't elaborate on their decision about the Sept. 21 episode involving Jose Rodriguez, 34, of Jersey City, N.J.
Follow AP Entertainment Writer Derrik J. Lang on Twitter at —http://www.twitter.com/derrikjlang.
AP Entertainment Writer Anthony McCartney contributed to this report.