Facing felony weapons charges from November 2009, B.G. appeared before a judge yesterday to plead guilty in the case.

According to NOLA (via DDot Omen), the 31-year-old faces up to 40 years in prison for the crime, which occurred during a traffic stop several years ago. The former Hot Boys rapper had guns in his possession – a violation as a convicted felon – and conspired with an associate to get another person, Demounde Pollard, to sign an affidavit falsely stating he owned the guns.

Court documents point out that B.G. has connections to high-profile criminals in the New Orleans, Louisiana area. The prosecutors make a point that they’re aware of online videos where he brags about his connections to the criminals and various crimes.

B.G. will be sentenced on March 14, 2012.

RELATED: B.G. Gets Federal Indictment On Weapon Charges, Faces 10 Years In Prison