Ja Rule on Monday pleaded guilty to attempted criminal possession of a weapon stemming from a July 2007 stop of his luxury sports car.
Wearing dark-blue jeans and a black sweater, the rapper said "guilty" and answered yes to a judge's questions in a low voice.
"Because of your guilty plea here today, you'll have a record of having committed a violent felony. This is a very serious matter," Manhattan state Supreme Court Justice Richard Carruthers told the rapper.
Ja Rule's lawyer, Stacey Richman, had no immediate comment.
Specifically, the rapper admitted to a charge that involves attempting to have a loaded gun outside one's home or workplace.
Police said they found a loaded semiautomatic gun in a rear door of the $250,000-plus car after it was stopped for speeding.
Ja Rule was promised two years in prison when he is sentenced in February.
Ja Rule's "Pain is Love" was nominated for a best rap album Grammy Award in 2002. The 34-year-old rapper — born Jeffrey Atkins — also has appeared in movies, including the 2001 film "The Fast and the Furious."