updated 03/29/2012 AT 1:00 PM ET
•originally published 03/29/2012 AT 2:00 PM ET
As long as she stays out of trouble, Lindsay Lohan’s days in criminal court have finally come to an end.
Nearly five years after the first of her two DUI arrests – and after multiple stints in rehab, at least five trips to jail and a necklace theft case – Lohan, 25, has satisfied her probation terms in her drunk driving case. She is no longer required to appear in court or report to a probation officer.
“She has done everything this court has asked of her,” Judge Stephanie Sautner said Thursday.
Since November, Lohan has completed more than 50 days of janitorial duty at the L.A. County morgue and 18 therapy sessions.
But the judge did give the actress a final warning, albeit in a warm and supportive tone of voice: “You need to live your life in a more mature way,” Sautner said. “Stop the nightclubbing and focus on your work. I don’t expect to see you again.”
“I just want to say thank you for being fair,” Lohan, who wore a teal-colored suit with her hair in a bun, told the judge. “It’s opened a lot of doors for me, so I really appreciate it.”
For the necklace theft case, Lohan will now serve informal probation until May 24, 2014, but her only requirement, the judge said, will be to obey all laws. If she slips up in the next two and a half years, the judge could sentence her to 245 days in jail.
“It’s not that hard [to stay out of trouble],” Sautner added. “I know it’s hard when you have people following you all over the place, but that’s the life you chose.”
The actress, who is attempting a career comeback, is slated to appear on an upcoming episode of Glee, her rep confirmed Wednesday. Lohan has also signed on to play Elizabeth Taylor in an upcoming Lifetime movie Liz and Dick.
“Lindsay is ending one chapter and getting ready to start the next,” her rep Steve Honig said. “She is very eager to get back on set and jump into her next few projects.”