Jon Jones has taken a plea deal in his drag-racing case.

The UFC star pleaded guilty to unlawful use of modification of exhaust systems and improper display of registration plate in Albuquerque (N.M.) Metropolitan Court on Thursday morning, according to court spokesperson Camille Baca. The other charges — unlawful drag racing, unlawful exhibition driving and failure to maintain traffic lane — were thrown out.

Jones was given a 90-day deferred sentence. In that period, he must complete aggressive driving school, comply with any previous driving restrictions, complete 60 hours of community service and pay a fine of $143. He must not violate any laws in that time.

TMZ was the first to report the sentence.

Jones, 29, already has 51 hours of community service completed from a probation violation in March in relation to the drag-racing charges. During that hearing, a judge ordered Jones attend anger management and driver improvement courses and do 60 hours of community service. He also needs approval from his probation officer every time he wants to drive.

The former longtime UFC light heavyweight champion was pulled over March 24 by Albuquerque Police Department officer Jason Brown. Jones can be seen vehemently denying he was drag racing on Brown's body cam video. The confrontation got heated with Jones calling Brown a "f*cking liar" and a "pig." Brown responded with snark.

Jones was already on probation following pleading guilty to a felony hit-and-run charge back in September. He was granted a conditional discharge in that case, which included 18 months of probation and 72 appearances of charity work. If Jones fulfilled that in that time span and didn't break the law, the judge said, he would be re-sentenced and the felony would likely be wiped clear from his record.

Things are complicated for Jones when it comes to the UFC right now as well. He tested positive for two anti-estrogen agents, clomiphene and letrozole, before UFC 200 and was pulled from the main event title fight with Daniel Cormier three days before the big card. Jones is denying he knowingly took those substances. His team is currently looking into ways in which Jones might have unknowingly ingested the banned drugs.

Jones is facing sanctions from both USADA, the UFC's anti-doping partner, and the Nevada Athletic Commission. From USADA, the standard suspension for performance-enhancing drugs is two years.

The UFC stripped Jones of the light heavyweight title when he was arrested for felony hit and run in April 2015. He won the interim title by beating Ovince Saint Preux in his return to the Octagon back in April.