From 4ee97434a247dd25c1cf819dcc5363d3b28a8b1c Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Mon, 16 Mar 2026 00:56:06 +0300 Subject: [PATCH] update en docs --- doc/en/scripting/builtins/libhud.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/en/scripting/builtins/libhud.md b/doc/en/scripting/builtins/libhud.md index a7e3fa853..1d6264b2d 100644 --- a/doc/en/scripting/builtins/libhud.md +++ b/doc/en/scripting/builtins/libhud.md @@ -54,6 +54,9 @@ hud.close(layoutid: str) -- Get open block inventory ID or 0. hud.get_block_inventory() -> int +-- Gives the ID of the second open inventory (block, virtual inventory...) or 0. +hud.get_second_inventory() -> int + -- Gives the ID of the player that the UI is bound to. hud.get_player() -> int @@ -69,6 +72,9 @@ hud.is_paused() -> bool -- Returns true if inventory is open or overlay is shown. hud.is_inventory_open() -> bool +-- Returns true if the player's inventory is open. +hud.is_player_inventory_open() -> boolean + -- Sets whether to allow pausing. If false, the pause menu will not pause the game. hud.set_allow_pause(flag: bool)