Man said he was selling pot to get money for court case