DALLAS (AP) — A friend of former NFL wide receiver Sam Hurd has formally pleaded guilty to a cocaine possession charge in connection with allegations that Hurd tried to start a drug ring.

Toby Lujan (loo-HAHN’) appeared in federal court in Dallas on Wednesday, almost a month after he took a deal with prosecutors. Lujan formally changed his plea to guilty before a federal judge.

READ MORE: City Council To Meet Again Friday With Renaming Lake Shore Drive On Agenda

Lujan’s plea deal calls for a prison sentence of five to 40 years. It also requires his testimony if asked.

READ MORE: Man Stabbed On CTA Blue Line Train

Hurd and Lujan were indicted in January. Hurd, who played for the Chicago Bears and Dallas Cowboys, allegedly told an undercover officer he wanted to buy large amounts of cocaine and marijuana to distribute.

He is now being jailed after being accused of trying to buy more drugs while out on bond.

MORE NEWS: 'Work-Share Illinois' Helping Workers Who Are Partially Laid Off By Employers

(© Copyright 2012 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)