Funes and his defense attorney had no comment on the plea, the attorney said.

Funes was arrested in December after a three-month investigation by the Marin Major Crimes Task Force. The task force introduced Funes to an undercover detective, made several purchases from him and ultimately arrested him and two suspected customers during a bust at a shopping center in downtown Novato.

Funes had about an ounce of cocaine in his possession, the task force reported. Investigators then searched his residence on Leafwood Drive and found three more ounces of suspected cocaine allegedly packaged for sale, plus digital scales, $1,500 in cash and a handgun that had been reported stolen in 1996.