AFP via Getty Images

Cardi B avoided prison time after pleading guilty to paying $5,000 to have two strip club bartenders beat up in 2018.

The 29-year-old Bronx rapper was charged in connection with an alleged assault on two female bartenders.

As part of her plea agreement, Cardi B admitted to paying an associate $5,000 to beat up the two women, TMZ reported.

Cardi B pleaded guilty Thursday to two misdemeanors, third-degree assault and reckless endangerment. Other charges were dropped in light of the plea deal.

Jury selection was set to begin Friday and the trial would have started on Monday. Cardi faced 10 years in prison if convicted.

The 2 women told police that Cardi B accused one of them of sleeping with her husband, promiscuous rapper Offset.
 
RELATED: Instagram Model Apologizes for Breaking Up Cardi B and Offset’s Marriage
 
The victims say Cardi B, real name Belcalis Almanzar, directed her posse of female goons to assault them.

The victims claimed that Cardi B and her entourage “threw bottles at them” causing minor injuries.

She agreed to 15 days of community service. If she fails to complete the community service, she will spend 15 days in jail.

The rapper appeared in court with two co-defendants, who also pleaded guilty to their roles.

All three women agreed to stay away from the victims.