The short answer is: every third country national who wants to work in Hungary needs a work permit. The long answer is: there are several types of work permits, and several types of work. They key is to match your residency to what you want to do in Hungary.