Government Code § 25840
ARTICLE 3. Miscellaneous
The board of supervisors may prohibit and prevent the unnecessary firing and discharge of firearms on or into the highways and other public places and may pass all necessary ordinances regulating or forbidding such acts.