30 year old Volodymyr Hryma was found to have a folding lock knife and cocaine on him after attempting to flee from police in March.
He was convicted of possessing a knife and cocaine after pleading guilty to the offences.
He was also handed a Community Order with 300 hours of unpaid work, plus £199 in court costs.