update hud.open(...)

This commit is contained in:
MihailRis
2024-11-28 15:48:44 +03:00
parent bf9f6bbe79
commit 3f9701915c
5 changed files with 31 additions and 19 deletions
+11 -2
View File
@@ -8,8 +8,17 @@ hud.open_inventory()
hud.close_inventory()
-- Open UI and inventory.
-- Throws an exception if has no UI layout.
hud.open(invid: int, layoutid: str)
-- Throws an exception if has UI layout does not exists.
-- If invid is not specified, a virtual (temporary) inventory is created.
-- Returns the invid or id of the virtual inventory.
hud.open(
-- UI layout name
layoutid: str,
-- Don't open player inventory
[optional] disablePlayerInventory: bool,
-- Inventory that UI layout will be bound to
[optional] invid: int
) -> int
-- Open block UI and inventory.
-- Throws an exception if block has no UI layout.