Leave it to California.
Check it out:

Gov. Jerry Brown has signed a bill making California the first state that allows family members to ask a judge to remove firearms from a relative who appears to pose a threat.

Brown announced the bill signing Tuesday. It was proposed by several Democrats and responds to a deadly rampage in May near the University of California, Santa Barbara.

Supporters had said such a measure could have prevented the attacks, winning out over critics who said it would erode gun rights.