diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index 2ca87d3d..55de1b6a 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -423,6 +423,10 @@ function addMenuHook(category, name, callback, condition, shortcut) } end +function removeMenuHook(category, name) + hookedMenuOptions[category][name] = {} +end + function createThingMenu(menuPosition, lookThing, useThing, creatureThing) if not g_game.isOnline() then return end local menu = g_ui.createWidget('PopupMenu')