In the event a tax is lawfully imposed under sections 66.500 to 66.516, no gross receipts tax imposed solely on hotels, motels or tourist courts or cafes, cafeterias, lunchrooms or restaurants shall be levied or collected by any city within the county and outside the corporate limits of a city with a population of at least three hundred fifty thousand inhabitants so long as the tax imposed under sections 66.500 to 66.516 remains in effect.