A man caught with cannabis in the centre of Blackpool went on to tell police he had swallowed hard drugs.
Callum Hartley, 20, also indicated he had wraps of heroin and crack cocaine between his buttocks.
Preston Crown Court heard he had been carrying about £250 of illegal substances on him.
He was arrested by two police officers who stopped him on Church Street, Blackpool one afternoon last June.
Hartley of Lytham Road, Blackpool, pleaded guilty to possessing the drugs cannabis, heroin and crack cocaine.
David Clarke, prosecuting, said prior to being approached, the defendant had been seen a short while earlier with others who had been stopped in a vehicle.
It was suspected a drug deal might have taken place.
A bag of cannabis, an illegal cigarette and a grinder were all found in Hartley’s jumper pocket.
He told police at the scene: “I’ve just bought it for £30.”
At Blackpool Police Station, he volunteered he had heroin and crack cocaine between his buttocks and had swallowed two wraps of heroin, as well as one of crack cocaine, just before police stopped him.
Paul Robinson, defending, said: “This is hopefully the last time he will appear before a court for a drug related or any other matters”.
The case was adjourned for sentencing to February 19 for reports. He was remanded on conditional bail.