A man planned the burglary of the home of his friend by drawing a map for criminals, a court heard.
Gregory Ward, 42, recruited four burglars to carry out the break-in at the house in Leeds and target a cannabis farm which was in the loft. The plan was foiled after neighbours at the property, in Middleton area, contacted police.
Officers chased the men and caught them in a ginnel nearby.
Peter Byrne, prosecuting, said there was a strong smell of cannabis and the burglars told them they had carried out the offence in search of the drug. Around £1,000 worth of property was also taken from the house including a lap top, jewellery and an ipod.
Mr Byrne said police searched a BMW parked near to the house and it obtained four rubber masks, a torch and other tools used to commit burglary.
Officers also recovered a hand-drawn map which contained details of the location of the property and the lay out of the interior.
Mr Byrne said Ward immediately became under suspicion as he was friends with he man who lived there and knew about the cannabis growing in the loft.
Ward, of Fenton Place, Middleton, denied any involvement with the offence. He pleaded guilty to conspiracy to commit burglary after a hand writing expert concluded that he had drawn the map.
The four men arrested for carrying out the burglary were sentenced to community penalties earlier this year. The court heard the couple who live at the property were arrested after the discovery of the cannabis. Alex Boyd, mitigating, said Ward was not responsible for carrying out the break-in. Mr Boyd urged Recorder Tony Kelbrick to impose a suspended sentence. He was given a 15 month sentence, suspended for 18 months, and ordered to do 200 hours unpaid work, and made the subject of a curfew for six months.