Exactly what I said. You need to obtain Thai permanent residency first, which you can apply for after a full three years of uninterrupted work permits. After holding PR for 5 years, you will then be eligible to apply for Thai citizenship. It's a very long process of 8+ years. If you are not already working here you have no chance!
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.