A man found by police slumped over in a van on the outskirts of Magherafelt, has lost his licence for three years.