A pilot scheme like the one you describe was proposed a year or so back for either Glasgow or Edinburgh but so far no move has been made. Public disquiet at the concept has been blamed for the lack of action. There have been needle exchange schemes, with public funding, in major cities here for some years.