Rhode Island is set to become the first state since the Florida school shooting to establish a “red flag” policy allowing judges to take firearms from people who show warning signs of violence.

Governor Gina Raimondo will sign an executive order to establish the policy, making Rhode Island the sixth state in the country to do so. President Donald Trump is also considering a similar order, sources told Bloomberg News.

Ms Raimondo said she was spurred to action by the tragedy in Parkland, Florida, where 17 people were killed when a gunman opened fire on Marjory Stoneman Douglas High School.

“[Rhode Island] isn’t going to wait a minute longer for Congress to take action on gun violence,” Ms Raimundo tweeted. “If they won’t act, we will.”

The new policy gives requires people to turn over their firearms and prevents them from buying new ones if a judge determines they pose an imminent danger. A court hearing must be held within 21 days, and the order can be extended after that.

Florida shooting – in pictures Show all 10 1 /10 Florida shooting – in pictures Florida shooting – in pictures Police arrest a suspect in connection with the shooting at the Marjory Stoneman Douglas High School in Parkland, Florida Reuters Florida shooting – in pictures Parents wait for news after reports of a shooting at Marjory Stoneman Douglas High School in Parkland, Florida AP Florida shooting – in pictures Anxious family members wait for news of students AP Photo/Wilfredo Lee Florida shooting – in pictures Students being evacuated from the school AP Florida shooting – in pictures Students being evacuated from the school Getty Florida shooting – in pictures People gather waiting for word from students AP Florida shooting – in pictures Parents waiting for news on their children AP Florida shooting – in pictures People gather at a hotel where students were taken after the shooting Getty Florida shooting – in pictures Florida Governor Rick Scott speaks to the media as he visits Marjory Stoneman Douglas High School following the shooting AFP/Getty Florida shooting – in pictures Dr. Igor Nichiporenko, Medical Director Trauma, left, and Dr. Evan Boyer, Medical Director, Emergency Services, speak about treating victims and the suspect at a press conference outside Broward Health North hospital AP

The FBI and a local sheriff’s office both received repeated tips about troubling behaviour the alleged Parkland shooter, 19-year-old Nikolas Cruz, and failed to follow up. The Rhode Island version of the policies allows for family members – not just law enforcement officials – to file a petition to have the guns removed.

The Rhode Island Police Chiefs Association voted unanimously last week to ask the state’s general assembly to pass a similar law. Ms Raimondo also urged the legislature to pass the law, which could be repealed less easily than an executive order.

Florida student Emma Gonzalez passionately calls for gun control at rally after school shooting

Advocates say the law will help get guns out of the hands of dangerous individuals, possibly preventing shootings like the one in Parkland. Gun-rights advocates like the National Rifle Association, however, argue that allowing a judge to take away someone’s firearms could be a violation of the second amendment.

California, Washington, Oregon, Indiana and Connecticut already have red flag statutes in place. It is unclear how effective these laws are at preventing mass shootings, but a 2016 study from Duke University found that the Connecticut law appeared to have prevented some suicides.