just replace gun with the object and the numbers in the addons line represent the vertexs, first being the origin of the weapon, the second is the direction it is pointing, and the third is the were the roll direction will point
if(gun!=null)
{
you = me; //YOU==the object we are sticking things to eg. the player
temp = handle(gun); //handle of our item to attach eg. a weapon
addons(temp,747,748,749);
}