it doesn’t matter what visa you hold, you automatically become a Thai tax resident by residing 180 days inside Thailand in a calendar year. There is no other qualifying criteria. As a Thai tax resident you are legally obligated to obtain a TIN within 60 days of receiving assessable income.
Anonymous participant 626 true but you stated that the visa you hold is irrelevant to getting a license. In the case of obtaining a 5 year license that is untrue.
Anonymous participant 626 incorrect, the regulations on the DLT website state that you must be in possession of a Non Immigrant Visa in order to apply for a 5 year license. You were lucky that your local office isn’t enforcing national rules.