Notwithstanding any other provisions of law to the contrary, any municipality governed by this subtitle may by ordinance provide that any person who is appointed to or holds, at the same time, both the office of tax collector and the office of treasurer in any such municipality need not reside within the said municipality in order to hold such offices. Such offices shall not be deemed vacated by a change of residence of any such person.
N.J.S. § 40:81-11a