EU citizens are entitled to seek consular assistance from diplomatic or consular missions of another EU Member State if they need consular protection in a third country where they are unrepresented.
Please kindly refer to the following page:
Consular Protection Outside the EU | Konzuli tájékoztatás (gov.hu)