The 6-times-average-salary route requires continuous work for 4 years, with actual residence of at least 6 months each year and a wage income at least 6 times the previous year's urban average. A gap in your wage record after resigning can break the 'continuous work' requirement.
Nationwide (all cities)
The high-income route
There is a permanent residence route based on high income. Under the National Immigration Administration's 12 immigration and entry-exit convenience policies (promoted nationwide for pilot free trade zones), a foreigner who works in China can apply for permanent residence if they have worked continuously for 4 years, actually resided for at least 6 months each year, have a wage income of at least 6 times the previous year's urban average salary of on-the-job workers in their area, and have paid individual income tax of at least 20% of their wage income standard.
Why a wage gap matters
Because this route is built on 'continuous work for 4 years', a gap in your wage record after resigning matters. If resigning leaves a period without a qualifying wage income, that breaks the 'continuous work' condition and the 'at least 6 months' actual residence' each year.
The wage standard
Note the wage standard is defined as 'wage income' (工资性年收入), not your total taxable income from all sources. The exact figure is the previous year's average salary of urban on-the-job workers in your area, which varies by city, and the specific threshold is confirmed by the local exit-entry administration where you apply.