SAN FRANCISCO — Supervisors plan to vote Tuesday on legislation requiring strict lock-up of firearms in vehicles parked in San Francisco.

The ordinance is in response to a number of high-profile shootings in San Francisco last year, including the death of a 32-year-old woman shot in July with a gun stolen from the car of a federal agent.

In October, prosecutors say a trio of homeless drifters stole a gun from a civilian’s parked car in San Francisco and used it to kill a backpacker and a tantric yoga instructor.

And on Friday, the Federal Bureau of Investigation announced that three handguns and an agent’s badge were stolen earlier that day from a locked vehicle in the San Francisco Bay Area.

“We have an epidemic in San Francisco, in the rest of the state and in the country of guns ending up in the wrong hands,” said David Campos, the San Francisco supervisor who introduced the legislation.

“Even if you can prevent one or a handful of deaths, that’s worthwhile.”

San Francisco isn’t the first to trot out such legislation. Oakland city officials approved a vehicle lock-up regulation in January, and a state bill is pending.

Mark Selmi, a spokesman for a law firm based that represents the California Rifle & Pistol Association, said the proposed restriction is unfair to gun owners.

“Criminalizing the behavior of lawful gun owners for the actions of violent criminals has never been an effective means for reducing crime,” he said.

The legislation calls for anyone leaving an unattended vehicle in San Francisco to lock up firearms in a trunk that can’t be opened from the main body of the vehicle, or inside a box permanently attached to the vehicle.

If the vehicle lacks a trunk, the locked box should be under a seat or otherwise hidden from view. A violation would be a misdemeanor offense, punishable by a fine of up to $10,000 and six months in jail.

The regulation would not apply to San Francisco police officers and sheriff’s deputies provided the departments have policies regulating the storage of firearms for on-duty and off-duty officers. Representatives for the departments say regulations are in place, or soon will be.

The proposed regulation also would not apply to on-duty officers from outside jurisdictions, including municipal, federal and military personnel.

Auto burglaries have plagued San Francisco, with nearly 12,000 break-ins reported in the first half of 2015. San Francisco police say that as of November 2015, 57 firearms had been stolen from vehicles.

Across the bay, authorities say a muralist in Oakland was fatally shot in September with a handgun stolen from the vehicle of a federal immigration officer who had parked in San Francisco.

Separately in August, a Hayward police officer’s gun was stolen from a vehicle in Oakland and a gun belonging to the chief of the University of California, Berkeley, police department was stolen from her car in Richmond while she was jogging.

AP-WF-02-02-16 1819GMT