Listen to 50 Cent on iHeartRadio

(TMZ) - 50 Cent won't be going to jail after allegedly kicking his baby mama and destroying a bunch of her property during a blowout fight back in June - TMZ has learned, he struck a plea deal to stay out of the slammer.

As TMZ reported, Fiddy was charged with 5 criminal counts following the incident - 1 count of misdemeanor domestic violence, and 4 counts of misdemeanor vandalism (for allegedly causing $7,100 in damage).

He pled not guilty soon after, but the judge still ordered him to stay away from baby mama Daphne Joy - the mother of 50's second child - and turn in all his guns.

Now, 50's attorney tells TMZ ... the rapper has worked out a deal with prosecutors to get the domestic violence charge DROPPED - agreeing to plead no contest to one count of misdemeanor vandalism instead. 

50 was sentenced today to 3 years probation and 30 days of community service. He has also agreed to attend counseling sessions and pay $7,100 in restitution to Daphne.

FYI, the restraining order against 50 Cent is still in effect. It's unclear if he's allowed to get his guns back.

Photo Credit Getty Images