Prop placement and freeze

So for example you have a cooking pot and a cooker. You touch the pot with the cooker and then the pot will go to the top of the cooker and it will freeze. Even if you move the cooker the pot will always stay in the same place and you can click on it to get it back.
I am do most of that but I need to know how you would place the prop and then freeze it and keep it in the same place with the cooker.
Any help will be much appreciated!

http://wiki.garrysmod.com/page/Entity/SetParent
http://wiki.garrysmod.com/page/ENTITY/Touch

These functions should come in handy.

Thank you, very Useful