California
Penal Code PC § 18130
A temporary emergency gun violence restraining order is valid only if it is issued by a judicial officer after making the findings required by Section 18125 and pursuant to a specific request by a law enforcement officer.