Isaiah R. Dunn-Vigo Gomes, 27, of Woodstock.

One of two Woodstock men, who were arrested during an undercover sting and found with a gun and drugs, was sentenced on Wednesday to eight years in prison.

Isaiah R. Dunn-Vigo Gomes, 27, and James Cornelius, 26, both of the 300 block of West Calhoun Street in Woodstock, were arrested last June.

The McHenry County Sheriff’s Office and McHenry County Narcotics Task Force began investigating Gomes and Cornelius after learning they were allegedly selling drugs through Snapchat, court records show.

A sheriff’s detective contacted Cornelius through Snapchat and asked to purchase 110 grams of cannabis for $600, a motion filed in court said.

Cornelius agreed to the sale and sent information to the detective regarding a meeting time and location.

The detectives and other police officers arrived at the set time on June 18 to conduct the controlled buy, the motion said.

[Suggested Article]  Probation for man who stole thousands of dollars from his employer in Algonquin

Undercover officers were able to locate a vehicle that was registered to Cornelius.

James Cornelius, 26, of Woodstock.

When officers approached the vehicle on its driver’s side, they saw a handgun near the center console, the motion said.

The handgun, which was loaded and accessible to both passengers, had its serial number scratched off. Both men did not have FOID cards for the weapon.

Officers searched the vehicle and found approximately 110 grams of cannabis packaged in two different bags. Officers also recovered 11 individual baggies of cocaine, weighing 6.7 grams, on Gomes.

Gomes was charged with armed violence, delivery of cocaine, possession of a defaced firearm, delivery of cannabis, two counts of felon in possession of a weapon, possession of a controlled substance, two counts of illegal possession of ammunition without a FOID, and violation of cannabis control act over 100 grams.

[Suggested Article]  Parolee allegedly follows woman to her Beach Park home, fights with sheriff's deputies and spits in their face

Cornelius was charged with armed violence, delivery of cannabis, possession of a defaced firearm, unlawful possession of a firearm without a FOID, unlawful possession of firearm ammunition without a FOID and violation of the cannabis control act.

Gomes entered into a negotiated plea deal with the McHenry County State’s Attorney’s Office.

He pleaded guilty on Wednesday to one count of unlawful possession of 1-15 grams of cocaine with intent to deliver, a Class 1 felony.

In exchange, prosecutors dismissed his other charges, court records show.

McHenry County Judge Michael Coppedge approved the plea deal and sentenced Gomes to eight years in the Illinois Department of Corrections.

The case against Cornelius remains pending.