I don't know about foreign citizens, but if the Registrars office won't issue it to you because you're foreign, then your only option left is to contact the Pakistani Embassy and ask for it. Other papers you will require is Police record. Again, I don't know if you can obtain it from the Irish Police, or whether you need a Pakistani Police record. But since you're living in Ireland, I would first attempt to obtain it from Ireland, if that's not possible, you would have to contact your Embassy. The entire process of marrying in Morocco is quite lengthy, so you need to ensure you have all the correct paperwork before you travel.