If you are looking at citizenship you would need three years of work permits amongst other requirements. If you are not married to a Thai you would also need to get Permanent Residency first.
This link gives you lots of information on the topic
******************************************************