California lawmakers are considering a bill that would allow people to legally smash car windows to rescue dogs left inside hot vehicles.

The bill, named the "The Right to Rescue Act," was drafted by state legislators Marc Steinorth of Rancho Cucamonga, Ling Ling Chang of Diamond Bar and Kristin Olsen of Riverbank, KABC-TV reported.

The lawmakers are expected to introduce the bill Tuesday during a Humane Society rally in Sacramento.

The three made a video of themselves sitting inside a hot car for 21 minutes to demonstrate the dangers it poses to an animal, according to the station.

Many residents in Southern California support the measure -- but some say they're concerned people might take advantage of the law.

"I think that should just be logic. If you see a dog in distress, break the window if you can't find the owner," dog owner April Rocha told the station.

"I think some people might take it a little far, like they see a dog in there and go a little nuts. I think it depends on the condition, but I think people may take advantage and go extreme," Rocha said.