Unless otherwise provided by this title, the election by a city or town to become a code city and to be governed by this title shall not affect any right or liability either in favor of or against such city or town existing at the time, nor any civil or criminal proceeding involving or relating to such city or town; and all rights and property of every description which were vested in such city or town immediately prior to becoming a code city shall continue to be vested in such code city; and all charter provisions, ordinances, resolutions, rules, regulations, or orders lawfully in force in such city or town at the time of becoming a code city, and not inconsistent with or repugnant to this title, shall continue in force in such code city until amended or repealed as provided by law.