South Carolina's capital has passed the first US city-specific measure banning bump stocks, joining a movement to halt the use of the gun accessory that drew national scrutiny after it was found to part of a Las Vegas shooting rampage in October.

The Columbia City Council voted to approve a measure that bans the attachment of the devices to weapons in city limits. The measure does not ban possession of bump stocks, which can make semiautomatic rifles fire hundreds of rounds a minute like fully automatic machine guns.

Last month, Massachusetts became the first state to pass a law that explicitly bans bump stocks.

Steve Benjamin, the mayor of Columbia, said at the council meeting he hoped the measure would provide a framework for other cities looking to enact similar legislation.

“One of the common refrains that you hear, whether it was in Texas or Vegas or Sandy Hook, is that a good guy with a gun could have stopped the carnage,” Benjamin, a Democrat, said in a phone interview on Monday. “It's time for the good guys with guns to begin to pass some really good policy.”

Authorities said Las Vegas shooter Stephen Paddock had 12 rifles outfitted with bump stocks in the hotel room where he launched his attack on an outdoor concert, killing 58 people and wounding hundreds in the deadliest mass shooting in modern US history.

Since then several states and cities have proposed measures outlawing or restricting the attachments, and the US Justice Department said earlier this month it was considering a ban on certain bump stocks.

California and New York do not prohibit bump stocks outright, but the devices fall under the definition of an automatic weapon, which are illegal in those states, according to Anne Teigen, who covers firearm legislation for the National Conference of State Legislatures. Some other states and the District of Columbia have assault weapons bans that could include bump stocks.

Las Vegas shooting – in pictures Show all 15 1 /15 Las Vegas shooting – in pictures Las Vegas shooting – in pictures People scramble for shelter at the Route 91 Harvest country music festival after gun fire was heard Getty Las Vegas shooting – in pictures People carry a person at the Route 91 Harvest country music festival after shots were fired David Becker/Getty Las Vegas shooting – in pictures People run from the Route 91 Harvest country music festival after gun fire was heard David Becker/Getty Las Vegas shooting – in pictures A handout photo released via Twitter by Eiki Hrafnsson (@EirikurH) showing concertgoers running away from the scene (C) after shots range out at the Route 91 Harvest festival on Las Vegas Boulevard EPA/Eiki Hrafnsson Las Vegas shooting – in pictures People lie on the ground at the Route 91 Harvest country music festival after hearing gun fire Getty Las Vegas shooting – in pictures A man in a wheelchair is taken away from the Route 91 Harvest country music festival after hearing gun fire David Becker/Getty Las Vegas shooting – in pictures People stand on the street outside the Mandalay Bay hotel near the scene of the Route 91 Harvest festival on Las Vegas Boulevard EPA/Paul Buck Las Vegas shooting – in pictures FBI agents confer in front of the Tropicana hotel-casino after a mass shooting during a music festival on the Las Vegas Strip Reuters/Las Vegas Sun/Steve Marcus Las Vegas shooting – in pictures Las Vegas police run by a banner on the fence at the Route 91 Harvest country music festival grounds after shots were fired David Becker/Getty Las Vegas shooting – in pictures An injured person is tended to in the intersection of Tropicana Ave. and Las Vegas Boulevard after a mass shooting at a country music festival Ethan Miller/Getty Las Vegas shooting – in pictures Metro Police officers pass by the front of the Tropicana hotel-casino after a mass shooting at a music festival on the Las Vegas Strip Reuters/Las Vegas Sun/Steve Marcus Las Vegas shooting – in pictures A woman sits on a curb at the scene of a shooting outside of a music festival along the Las Vegas Strip AP/John Locher Las Vegas shooting – in pictures A cowboy hat lays in the street after shots were fired near a country music festival in Las Vegas Getty Las Vegas shooting – in pictures Las Vegas Metro Police and medical workers stage in the intersection of Tropicana Avenue and Las Vegas Boulevard South after a mass shooting at a music festival on the Las Vegas Strip Reuters/Las Vegas Sun/Steve Marcus Las Vegas shooting – in pictures Sheriff Joe Lombardo (2-R) speaking during a press briefing in the aftermath of the active shooter incident on Las Vegas Boulevard EPA

“We are not aware of any cities that have passed ordinances banning bump stocks,” said Tom Martin, a spokesman for the National League of Cities.

The Columbia measure also would ban the use of other gun attachments that allow rifles to fire faster. Using such devices would be a misdemeanour, and owners would be required to keep them stored separately from any weapon.

Trigger-enhancing devices are not gun parts, gun components, weapons or ammunition, which state law prohibits cities from regulating, Benjamin said.