Police believed a Linthwaite man was dealing cannabis after finding the drug stashed in his car and kitchen drawers.
The officers also found in the home of Robert Roberts a set of scales used to weigh the class B drug and texts requesting it.
However, the 27-year-old yesterday denied being involved in any street dealing when he appeared at Kirklees Magistrates’ Court.
He claimed that he supplied cannabis to friends during poker sessions at his home.
Vanessa Schofield, prosecuting, said that following enquiries police carried out a search at the Riverside address on August 4.
Roberts was in the house at the time together with some other males.
Ms Schofield said: “Whilst searching the address four small bags of cannabis were found in Mr Roberts’ vehicle.
“There were two large bags in the kitchen drawers and a clear bag containing numerous bags in a wash basket in the main bedroom.
“Police also found a bag containing dealer bags, a set of electronic scales and some empty sealable bags.”
The prosecutor added that £30 in cash was found on a worktop and two children’s plastic balls by the kitchen window contained some coins.
A mobile phone found during the search contained two texts asking for drugs, Ms Schofield said.
She told magistrates that it was the crown’s case that the drug were being supplied by Roberts on a commercial basis.
Roberts admitted possession of cannabis with intent to supply it to others.
Jonathan Slawinski, mitigating, said that the guilty plea was on a basis that his client only supplied the drug to his friends.
He said: “He accepts being in possession of 37.49 grams and that he paid ï¿½180 for the drugs.
“If this is a commercial enterprise then it’s an extremely poor one – I’m saying there’s no evidence of street dealing.
“He only gave cannabis to his small circle of friends.
“When they visit his house to play poker he sometimes gives them some drugs.
“Sometimes they buy a little off him and they smoke it out in the garden.”
Magistrates told Roberts that due to the two different versions put forward they need to hold a special hearing before they can pass sentence.
This will take place at the Huddersfield court to determine what use the drugs were intended for.
Roberts was ordered to comply with the Drugs Intervention Programme until the hearing on November 26.