I’m surprised that California hasn’t outlawed the use of ‘fossil fuel’ generators yet. After all, they contribute to climate change.
They have restricted them. When you purchase a generator, look for "CARB Compliant" on the box, CARB being California Air Resources Board. If it isn't CARB compliant it isn't supposed to be sold or used in the state.