Drunk or high residents on the wrong side of the law next year will get an option: go to jail or sleep it off.