A new law in California means you can legally break into a car if there's an animal in distress inside.

FOX's Jill Nado has details:

It's called California's hot dog law and it means if you spot a animal inside a hot car, you should call police, but if they're not getting there fast enough, you can break a window to rescue the animal and you'll be immune from criminal or civil liability.

Lawmakers say the measure was needed because people trying to keep animals from dying inside hot cars have often been met by angry owners, and those owners have been known to demand the rescuer to pay for the damage.

California's the biggest state to enact this kind of good Samaritan law, joining Wisconsin, Tennessee, Florida, Vermont and Ohio.

Jill Nado, FOX News.