used the built-in features of the hut: it has a task editor in its ObjectPropertiesTree, and you can create a task to collect resources in exchange for another resource. This method is good because the entire script is already written, and when you enter the hut, a beautiful window with pictures appears.