Adam Byrnes, 46, from Inverell pleaded guilty to supplying methamphetamine, when he appeared in Armidale District Court on Tuesday.
The court heard Byrnes was approached by police while he was parked near a dirt track known to be where illegal drug activity takes place.
When the offender drove away, police followed and stopped him near Prince Street, Inverell.
Byrnes was arrested for traffic offences, but when the vehicle was searched a quantity of drugs was found.
Police found a black bum bag at the foot well of the front passenger seat, and when searched it had a clear cylinder containing a small number of crystal like rocks inside it.
When Byrnes' mobile phone was searched, police discovered a series of text messages that related to a drug transaction.
Byrnes made a full admission during the police investigation and on Tuesday he pleaded guilty to supplying 5.04 grams of methamphetamine.
Judge Hunt sentenced Byrnes to a 12 month Community Corrections Order, commencing from last Monday. He will be supervised by a community corrections officer during this period.