adds a resource to inventory gui when destroyed