This question already has an answer here:
I did a lot of searching and can't get a clear answer: If a resource is beyond 3 tiles but within the 5 tile border, do we still get the resource benefit? Do I have to improve it? I know it can't be worked, but if I can get the resource, and I do improve it, do I get the gold too?
I ask because I have seen resources near each other that I can get only some of them, the others are just outside.
Thanks for your help!