Find Holstered Weapons

Hiya,
I want to make a script that makes it so you can only pick up one of each gun, and im not sure how to find what the have holstered.

Then, on PlayerCanPickupWeapon hook, check if the weapon they’re picking up is already in their inventory. If so then just return false.

Much thanks