Every municipality shall have plenary power and authority to levy and collect an annual motor vehicle operator's license tax not to exceed $2. The tax shall apply only to inhabitants of the municipality.