I would buy firearms that are everywhere in the world. I like to get anything the military, police, or what most civilians have. Also whatever caliber is the most popular. The firearms that are popular are already proven and will be your friend when the SHTF due to the ease of finding spare parts, finding spare magazines, and finding ammo. Also any NATO firearms or calibers can probably be found easily in non-NATO regions.
1. Glock 19 - Most popular among police forces and civilian alike. 9mm is everywhere.
2. AR15 - Military issues them, police forces use them, almost every gun owner has one.
3. Remington 870 - Most popular shotgun. Mossberg 590 probably the 2nd most popular.
4. AK47 - This gun is literally everywhere... EVERYWHERE!
5. 1911 - It's been around for 100 years and probably only getting more popular.
6. Remington 700 - Popular among military and police. .308 is probably the 3rd easiest rifle caliber to find... Behind .556 and 7.62x39.
7. M1A - If you suck at sniping like me and require many follow up shots... This is a semi auto .308 that is still used by the military... or at least used too. Still popular among civilians.
8. Ruger .22 pistol or rifle. - Ruger .22s are proven and .22 ammo is extremely cheap and plentiful. Perfect for hunting small game and can still be deadly to humans if it comes to it.
9. Smith and Wesson revolver - I'm not knowledgable on revolvers but Smith and Wesson revolvers have been used by almost all LE agencies back in the day. Revolvers are very good pistols as they have very little moving parts, unlike like semi autos. It's like comparing a carburated vehicle to fuel injected... for you car peeps. Some just dislike revolvers but they have their advantages. I would get a .357 revolver just because to can shoot both .357 and .38 calibers. .38s are still pretty plentiful out there.
I wouldn't buy anything in a fancy caliber that you'll have a hard time finding or a firearm that isn't used by the military or police. To me... If the military or police use it... you know it has been tested beyond its limits and is proven. Or you could just buy a Les Baer and wait several paychecks to own your next gun.
All that should be under $5k... I think