diff --git a/src/client/component/lui.cpp b/src/client/component/lui.cpp index c99766c1..4fd77f6d 100644 --- a/src/client/component/lui.cpp +++ b/src/client/component/lui.cpp @@ -95,6 +95,17 @@ namespace lui game::LUI_OpenMenu(0, params[1], 0, 0, 0); }); + command::add("lui_close", [](const command::params& params) + { + if (params.size() <= 1) + { + console::info("usage: lui_close \n"); + return; + } + + game::LUI_LeaveMenuByName(0, params[1], 0, *game::hks::lua_state); + }); + command::add("lui_open_popup", [](const command::params& params) { if (params.size() <= 1) diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 383ea1b8..0ed6957e 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -193,6 +193,8 @@ namespace game WEAK symbol LUI_OpenMenu{0x3F20A0, 0x1E1210}; + WEAK symbol LUI_LeaveMenuByName{0xF6D00, 0x26BE80}; WEAK symbol LUI_EnterCriticalSection{0xF19A0, 0x2669B0}; WEAK symbol LUI_LeaveCriticalSection{0xF6C40, 0x26BDC0};