When entering Croatia from Serbia at Batrovci, you get off the bus at the Croatian side for passport control, while when exiting Croatia, an offcer boards the bus and collects documents.
When entering Hungary from Serbia at Röszke, you also get off the bus on the Hungarian side.
What about exiting Hungary? Do the Hungarians board the bus or do you have to get off?