The law is very strict about working in Thailand. Specifically, the law says:
In order to work while you are living in Thailand, you need a work permit - whether or not you are actually earning money.
A work permit is tied to a specific employer and a specific job at a specific location.
A work permit requires the person to be employed by a Thai company.