An Atlantic City man pleaded guilty in a gun-and-drug case Thursday.
Divier Silva, 27, faces a five-year sentence under the plea agreement.
He must serve at least one year before he is eligible for parole.
Silva's gun had a 30-round magazine, police said at the time.
Officers also found more than nine ounces of marijuana in the vehicle.
Silva pleaded guilty to second-degree unlawful possession of a handgun and third-degree possession with intent to distribute marijuana.
He is currently on release pending his sentencing set for Aug. 3.