Open main.lua -> go to line 48 -> change Key.M to Key.CAPS_LOCK. RegisterKeyBind(Key.CAPS_LOCK, function() CloseMap() end) List of keys here: Key - UE4SS Documentation
I got it to work by installing it manually everything inside the game folder. I had trouble getting this to work after the update using Vortex and MO2. I did not use the version of UE4SS that comes with this mod.
edit: Ok I figured it out myself. It's pretty straightforward, since the basic functionality is already there.
Simply open the main.lua from the scripts folder and copy all lines from line 20 to 54 and paste them below. Then change all mentions of "Map" like IsOnMapPage, ELegacyPlayerMenuPage.Map, CloseMap & IsOnMapPage to whatever menu you wish to close. e.g. IsOnInventoryPage, ELegacyPlayerMenuPage.Inventory, CloseInventory & IsOnInventoryPage. This can be done for all menus simply paste them below and change the mentioned parts to Stats, Inventory, Magic, Quest respectively. Also don't forget to change the keybind in the script to whatever key you're using.
Here are my script edits, for those of you who just want to copy/paste. Paste them below and change to your prefered keybind:
--Inventory-- local function IsOnInventoryPage(playerMenu) local playerMenuViewModel = playerMenu:GetViewModelRef() if not playerMenuViewModel then return false end if not playerMenuViewModel:IsVisible() then return false end local currentPage = playerMenuViewModel:GetCurrentPage() return currentPage == ELegacyPlayerMenuPage.Inventory end local function CloseInventory() local playerMenu = GetPlayerMenu() if not playerMenu then return end if not IsOnInventoryPage(playerMenu) then return end playerMenu:CloseMenu() end RegisterKeyBind(Key.B, function() ExecuteInGameThread(function() CloseInventory() end) end) --Stats-- local function IsOnStatsPage(playerMenu) local playerMenuViewModel = playerMenu:GetViewModelRef() if not playerMenuViewModel then return false end if not playerMenuViewModel:IsVisible() then return false end local currentPage = playerMenuViewModel:GetCurrentPage() return currentPage == ELegacyPlayerMenuPage.Stats end local function CloseStats() local playerMenu = GetPlayerMenu() if not playerMenu then return end if not IsOnStatsPage(playerMenu) then return end playerMenu:CloseMenu() end RegisterKeyBind(Key.G, function() ExecuteInGameThread(function() CloseStats() end) end) --Magic-- local function IsOnMagicPage(playerMenu) local playerMenuViewModel = playerMenu:GetViewModelRef() if not playerMenuViewModel then return false end if not playerMenuViewModel:IsVisible() then return false end local currentPage = playerMenuViewModel:GetCurrentPage() return currentPage == ELegacyPlayerMenuPage.Magic end local function CloseMagic() local playerMenu = GetPlayerMenu() if not playerMenu then return end if not IsOnMagicPage(playerMenu) then return end playerMenu:CloseMenu() end RegisterKeyBind(Key.V, function() ExecuteInGameThread(function() CloseMagic() end) end) --Quest-- local function IsOnQuestPage(playerMenu) local playerMenuViewModel = playerMenu:GetViewModelRef() if not playerMenuViewModel then return false end if not playerMenuViewModel:IsVisible() then return false end local currentPage = playerMenuViewModel:GetCurrentPage() return currentPage == ELegacyPlayerMenuPage.Quest end local function CloseQuest() local playerMenu = GetPlayerMenu() if not playerMenu then return end if not IsOnQuestPage(playerMenu) then return end playerMenu:CloseMenu() end RegisterKeyBind(Key.J, function() ExecuteInGameThread(function() CloseQuest() end) end)
+1 And also, keybinds for when you are in a menu and just want to switch to another menu without having to get out and then go back into a different one, like switching from Inventory directly to Magic, directly to Character, for instance.
Please change the directory structure so it matches where the files are meant to be installed. This will make tools like Vortex and MO2 able to automatically install it without any hassle. Thanks. :)
Anyone getting CTDs when opening or closing the map?
Im not accusing this mod just was not sure where else to ask such things.
After some play time ive noticed that almost all my CTDs (which are not many) occur when opening or closing the map (pressing m, not when browsing the journal in general).
Is it possible to make a mod to change the Select keybinding from "Enter" to "E"? I'm somewhat tired of moving my hand from one side of the keyboard to the other, as it is very inconvenient.
There’s actually a mod that helps with this. You can choose between using the Spacebar or E, with Spacebar recommended since it’s less likely to conflict with other UI bindings. Hope it’s okay to share this link. Above comment covered it.
The fact that this even has to be modded in when we're in the year 2025 is wild. Aside from the graphics this remaster really didn't improve anything lmao.
68 comments
RegisterKeyBind(Key.CAPS_LOCK, function()
List of keys here: Key - UE4SS DocumentationCloseMap()
end)
edit: Ok I figured it out myself. It's pretty straightforward, since the basic functionality is already there.
Simply open the main.lua from the scripts folder and copy all lines from line 20 to 54 and paste them below.
Then change all mentions of "Map" like IsOnMapPage, ELegacyPlayerMenuPage.Map, CloseMap & IsOnMapPage to whatever menu you wish to close. e.g. IsOnInventoryPage, ELegacyPlayerMenuPage.Inventory, CloseInventory & IsOnInventoryPage.
This can be done for all menus simply paste them below and change the mentioned parts to Stats, Inventory, Magic, Quest respectively. Also don't forget to change the keybind in the script to whatever key you're using.
Here are my script edits, for those of you who just want to copy/paste. Paste them below and change to your prefered keybind:
--Inventory--
local function IsOnInventoryPage(playerMenu)
local playerMenuViewModel = playerMenu:GetViewModelRef()
if not playerMenuViewModel then
return false
end
if not playerMenuViewModel:IsVisible() then
return false
end
local currentPage = playerMenuViewModel:GetCurrentPage()
return currentPage == ELegacyPlayerMenuPage.Inventory
end
local function CloseInventory()
local playerMenu = GetPlayerMenu()
if not playerMenu then
return
end
if not IsOnInventoryPage(playerMenu) then
return
end
playerMenu:CloseMenu()
end
RegisterKeyBind(Key.B, function()
ExecuteInGameThread(function()
CloseInventory()
end)
end)
--Stats--
local function IsOnStatsPage(playerMenu)
local playerMenuViewModel = playerMenu:GetViewModelRef()
if not playerMenuViewModel then
return false
end
if not playerMenuViewModel:IsVisible() then
return false
end
local currentPage = playerMenuViewModel:GetCurrentPage()
return currentPage == ELegacyPlayerMenuPage.Stats
end
local function CloseStats()
local playerMenu = GetPlayerMenu()
if not playerMenu then
return
end
if not IsOnStatsPage(playerMenu) then
return
end
playerMenu:CloseMenu()
end
RegisterKeyBind(Key.G, function()
ExecuteInGameThread(function()
CloseStats()
end)
end)
--Magic--
local function IsOnMagicPage(playerMenu)
local playerMenuViewModel = playerMenu:GetViewModelRef()
if not playerMenuViewModel then
return false
end
if not playerMenuViewModel:IsVisible() then
return false
end
local currentPage = playerMenuViewModel:GetCurrentPage()
return currentPage == ELegacyPlayerMenuPage.Magic
end
local function CloseMagic()
local playerMenu = GetPlayerMenu()
if not playerMenu then
return
end
if not IsOnMagicPage(playerMenu) then
return
end
playerMenu:CloseMenu()
end
RegisterKeyBind(Key.V, function()
ExecuteInGameThread(function()
CloseMagic()
end)
end)
--Quest--
local function IsOnQuestPage(playerMenu)
local playerMenuViewModel = playerMenu:GetViewModelRef()
if not playerMenuViewModel then
return false
end
if not playerMenuViewModel:IsVisible() then
return false
end
local currentPage = playerMenuViewModel:GetCurrentPage()
return currentPage == ELegacyPlayerMenuPage.Quest
end
local function CloseQuest()
local playerMenu = GetPlayerMenu()
if not playerMenu then
return
end
if not IsOnQuestPage(playerMenu) then
return
end
playerMenu:CloseMenu()
end
RegisterKeyBind(Key.J, function()
ExecuteInGameThread(function()
CloseQuest()
end)
end)
Im not accusing this mod just was not sure where else to ask such things.
After some play time ive noticed that almost all my CTDs (which are not many) occur when opening or closing the map (pressing m, not when browsing the journal in general).
I've switched to this one Close Menus.
I'm somewhat tired of moving my hand from one side of the keyboard to the other, as it is very inconvenient.
There’s actually a mod that helps with this. You can choose between using theSpacebarorE, withSpacebarrecommended since it’s less likely to conflict with other UI bindings. Hope it’s okay to share this link.
Above comment covered it.Press Space To Confirm (Enter Rebind)