California’s law would be enacted under an exemption of a federal law by allowing private citizens to file a lawsuit if the gun maker is found to be in violation of state laws regarding gun sales or marketing, which follows the template set by the case of Sandy Hook victims who successfully sued Remington Arms.
Source