Type of Prop Protection

I am looking for a simple script that if when you pick up(physgun) a prop(World Prop), You own that prop. You can only have a limit of a certain amount of props you picked up. Also add a feature to where you can unown the prop. This is for a gamemode I need.

Also you can also point me to the functions to where I could do something like this.

Thanks.