LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Item.Create()

Open TheLongQuite opened this issue 1 year ago • 3 comments

At the moment, the only way to create an Item based on Pickup is to run it through InventoryExtensions::ServerAddItem. The main problem is that it necessarily includes some kind of Inventory. It would be nice to implement creating items directly in the Item wrapper.

The only option I saw was to run Inventory::CreateItemInstance via Server.Host.Inventory, independently call ItemBase.onAdded(ItemPickupBase); and assign Serial to the item itself.

TheLongQuite avatar Jun 08 '25 14:06 TheLongQuite

We are trying to work out why this is needed, can you provide a case where creating the item directly without a owner is better than let say creating the item in the hosts inventory and using Item.Move or creating a pickup and adding it?

brayden-dowson avatar Jul 08 '25 08:07 brayden-dowson

Thank you for your suggestion! We've logged this issue in our internal git system for further review and tracking. Please note that this doesn't guarantee acceptance or implementation at this stage. If we need any additional information or clarification, we'll be sure to reach out to you.

Jesus-QC avatar Oct 14 '25 09:10 Jesus-QC

We've reopened this suggestion to prevent confusion and duplicate posts. As stated before, the issue has been added to our internal tracker, but that does not guarantee acceptance nor implementation.

Axwabo avatar Apr 27 '26 17:04 Axwabo