A Brooklyn man was busted for selling more than just Popsicles from his Bay Ridge ice-cream truck, Brooklyn District Attorney Charles Hynes said yesterday.

Mina Gatas, 20, was filmed selling $830 worth of cocaine and oxycodone — and a small vanilla ice-cream cone — to an undercover officer from his truck parked at the Owl’s Head Pier on July 9, prosecutors allege.

“I’m in total shock! Right here? That guy has been our ice-cream man here for years!” said George Patterson, 47, who was fishing on the pier yesterday with his son Jim, 9.

“Right under everyone’s nose! I seen it in movies, ‘Cheech & Chong,’ but never dreamed it would happen in Bay Ridge.”

For the July 9 buy, the undercover took off his hat — which held the cash — and asked for a vanilla cone.

Gatas took the money from the hat, put the coke and pills in the hat, asked if the undercover wanted sprinkles, and then handed over the ice cream, prosecutors allege.

“He brazenly sold large quantities of drugs right from the ice-cream truck while children bought their ice cream just a few inches away,” said Hynes.

Gatas, who was slapped with drug-sales charges, could face 20 years behind bars if convicted.