Anthony Simpson admitted to the assault just as his trial was about to start.
Back in 2016, authorities say Simpson approached his ex-girlfriend and her male accomplice on their way to file a restraining order against him.
That's when he opened fire, hitting the male victim in the leg as his ex-girlfriend got away.
He was arrested a short time later. Sentencing is set to take place next month.