Petty, 43, plead guilty on Thursday during a virtual hearing with the U.S. District Court for the Central District of California, according to People.
His sentencing hearing is scheduled for January 24, 2022, and he faces up to 10 years in prison, with supervised release for the rest of his life after his prison stint.
Petty was convicted for the first-degree attempted rape of a 16-year-old girl in 1995, and was sentenced to serve between 18 and 54 months in prison.
He ultimately served four years in prison and is considered a level two registered offender in New York, which classifies him as a 'moderate risk' to become a repeat offender.
He was pulled over in Beverly Hills in November 2019, and the Beverly Hills cops determined he was a registered sex offender in New York, though he has not registered in California, which he's required by law to do when moving to a new state.
Petty was arrested in March 2020 for failing to register as a sex offender, which he plead not guilty to and posted a $100,000 bond.
Both Petty and Minaj, 38, were sued by his alleged rape victim, Jennifer Hough, 38, last month, where she accused the couple of intimidating him to recant her rape accusation.
Hough alleges that after Minaj and Petty started dating in 2015, they both tried to discredit her rape allegation.
Minaj even once took to Twitter to say Petty and Hough were, 'in a relationship' at the time of the alleged rape, but Hough claims in the lawsuit that they were never in a relationship.
Minaj and Hough allegedly had a phone conversation where Minaj allegedly offered to have a publicist put together a statement where she recanted her rape accusation.
After the call, Hough alleges people close to Minaj and Petty offered a member of her family $500,000 for her to recant her rape accusation.
The lawsuit also alleges that Minaj sent Hough's childhood friend, known as Black, to offer her legal advice about how to retract her story, and give her $20,000.
'Black pulled out a green-colored folder that had a document inside. This document was a written recanted statement prepared for Plaintiff to sign. Black then pulls twenty thousand dollars out of the armrest and places it on the Plaintiff's lap,' the lawsuit read.
'Plaintiff took the money off her lap and placed it on the floor. Plaintiff could not believe that Defendant Minaj would go this far to bribe her,' the suit adds.
Last month, Petty filed a lawsuit to remove his name from the New York State Sex Offender Registry.
Petty claimed in legal documents that he was never notified about a hearing in October 2004 when he was in prison.
He claimed the court process was 'sabotaged' to prevent him from attending the hearing, which determined which level of sex offender he was classified as.
© Associated Newspapers Ltd.