Here is the page on transfers from the manual. Different countries have different limits on foreign players and work permits
https://www.managerzone.com/?p=manual_faq&cat_id=1362
Residency is no longer important. It used to be that a player had to have a certain amount of time before they were eligible for a work permit.