Nothing contained herein or in section 3 of P.L. 1995, c.230 (C.2C:34-7) shall be construed to prohibit a municipality from adopting as a part of its zoning ordinances an ordinance permitting the sale, distribution, rental or exhibition of obscene material in which event such sale, distribution, rental or exhibition shall be deemed legal.
N.J.S. § 2C:34-2