Notwithstanding any other provision of law, the legislative body of any code city, by resolution adopted by a two-thirds vote of the full legislative body, may authorize any of its members to serve as volunteer firefighters, volunteer ambulance personnel, or reserve law enforcement officers, or two or more of such positions, and to receive the same compensation, insurance, and other benefits as are applicable to other volunteer firefighters, volunteer ambulance personnel, or reserve law enforcement officers employed by the code city.