(a)
Section 25400 shall not be construed to prohibit any citizen of the United States over the age of 18 years who resides or is temporarily within this state, and who is not prohibited by state or federal law from possessing, receiving, owning, or purchasing a firearm, from transporting or carrying any pistol, revolver, or other firearm capable of being concealed upon the person, provided that the following applies to the firearm:
(1)
The firearm is within a motor vehicle and it is locked in the vehicle’s trunk or in a locked container in the vehicle.
(2)
The firearm is carried by the person directly to or from any motor vehicle
for any lawful purpose and, while carrying the firearm, the firearm is contained within a locked container.
(b)
The provisions of this section do not prohibit or limit the otherwise lawful carrying or transportation of any pistol, revolver, or other firearm capable of being concealed upon the person in accordance with the provisions listed in Section 16580.