Nights will be a living dread for out-of-state motorists if one New York lawmaker has his way.

Queens Assemblyman Michael Miller has proposed a law that would prohibit cars with out-of-state plates from parking overnight on city streets. The bill would make it illegal to park with non-New York plates from 2 a.m. to 5 a.m. Violators could have their vehicles towed.

“In the City of New York and other areas throughout the state, we have become inundated with out-of-state vehicles taking up parking spaces on public streets to the detriment of local residents,” Miller said.

“By registering out-of-state, you are either committing fraud by not registering your vehicle in New York state or you are avoiding paying state Department of Motor Vehicles fees.”

Under the Democrat’s proposal, visiting out-of-town guests could apply for an “exemption sticker.” A resident who owns property in another state — and has a car registered there — could also apply for an exemption.

According to Miller’s estimates, one of every five parked vehicles in his district — encompassing Woodhaven, Glendale, Ozone Park and Richmond Hill — is registered outside New York state.

“We have lots of cars with Florida plates, Jersey plates, Massachusetts, Georgia, you name it,” he said.

Miller said he’s heard numerous complaints about out-of-state parking freeloaders, particularly from the Woodhaven Residents’ Block Association.

“We want to have parking for residents who pay insurance and motor-vehicles fees here,” Miller said. “It’s only fair.”

But the AAA is raising a red flag.

“To have a provision that prevents people from coming to New York City and parking on the street during some given hours seems totally shortsighted and unfair,” said Robert Sinclair, New York spokesman for the nonprofit automobile service organization.

There are about 2 million cars registered in the city and 10 million in New York state.