Cal. Fam. Code § 6389
(c)
(2) The relinquishment ordered pursuant to paragraph (1) shall occur by immediately surrendering the firearm or ammunition in a safe manner, upon request of a law enforcement officer, to the control of the officer, after being served with the protective order. A law enforcement officer serving a protective order that indicates that the respondent possesses weapons or ammunition shall request that the firearm or ammunition be immediately surrendered. Alternatively, if a request is not made by a law enforcement officer, the relinquishment shall occur within 24 hours of being served with the order, by either surrendering the firearm or ammunition in a safe manner to the control of local law enforcement officials, or by selling, transferring, or relinquishing for storage pursuant to Section 29830 of the Penal Code, the firearm or ammunition to a licensed gun dealer, as specified in Article 1 (commencing with Section 26700) and Article 2 (commencing with Section 26800) of Chapter 2 of Division 6 of Title 4 of Part 6 of the Penal Code. The law enforcement officer or licensed gun dealer taking possession of the firearm or ammunition pursuant to this subdivision shall issue a receipt to the person relinquishing the firearm or ammunition at the time of relinquishment. A person ordered to relinquish a firearm or ammunition pursuant to this subdivision shall, within 48 hours after being served with the order, do both of the following:
(h) The court may, as part of the relinquishment order, grant an exemption from the relinquishment requirements of this section for a particular firearm or ammunition if the respondent is not otherwise prohibited from owning, possessing, controlling, or purchasing a firearm and ammunition under state or federal law and one of the following applies:
(1)
(A) The respondent is currently employed as a sworn peace officer who is required, as a condition of continued employment, to carry a firearm, ammunition, or firearm and ammunition and the current employer is unable to reassign the peace officer to another position where use of a specified firearm or ammunition is unnecessary. In such a case, a court may allow the peace officer to continue to carry a specified firearm, ammunition, or firearm and ammunition, either on duty or off duty, if the court finds by a preponderance of the evidence, in writing or on the record, both of the following:
(2)
(i)
(l)