California law defines each crime according to a specific code section. The Penal Code defines the vast majority of the crimes. But the Vehicle Code addresses certain crimes involving cars, motor vehicles and driving. The Health & Safety Code addresses most crimes involving marijuana or narcotics.