LOS ANGELES — Rapper 50 Cent has been sentenced to three years of probation after pleading no contest to vandalism in a case filed after an alleged fight with his ex-girlfriend earlier this year.

Los Angeles City Attorney’s spokesman Frank Mateljan said the rapper, whose real name is Curtis Jackson, was ordered on Monday to pay $7,100 in restitution and take a year of domestic violence classes.

Jackson had previously pleaded not guilty to destroying items in his ex-girlfriend’s condo during an argument in June.