This is because California had a problem with people not calling 911 so they passed a law in 2013
SEC. 2.
Section 11376.5 is added to the Health and Safety Code, to read:
11376.5.
(a) Notwithstanding any other law, it shall not be a crime for a person to be under the influence of, or to possess for personal use, a controlled substance, controlled substance analog, or drug paraphernalia, if that person, in good faith, seeks medical assistance for another person experiencing a drug-related overdose that is related to the possession of a controlled substance, controlled substance analog, or drug paraphernalia of the person seeking medical assistance, and that person does not obstruct medical or law enforcement personnel. No other immunities or protections from arrest or prosecution for violations of the law are intended or may be inferred.
(b) Notwithstanding any other law, it shall not be a crime for a person who experiences a drug-related overdose and who is in need of medical assistance to be under the influence of, or to possess for personal use, a controlled substance, controlled substance analog, or drug paraphernalia, if the person or one or more other persons at the scene of the overdose, in good faith, seek medical assistance for the person experiencing the overdose. No other immunities or protections from arrest or prosecution for violations of the law are intended or may be inferred.