Revert "refactor(es_extended/client/main): use esx function for keymapping"

This reverts commit 47920b73fd.
This commit is contained in:
Thekuca
2023-12-22 15:25:21 +01:00
parent 47920b73fd
commit e49947449b
+7 -5
View File
@@ -453,11 +453,13 @@ function StartServerSyncLoops()
end
if not Config.OxInventory and Config.EnableDefaultInventory then
ESX.RegisterInput('showinv', TranslateCap('keymap_showinventory'), 'keyboard', 'F2', function()
if not ESX.PlayerData.dead then
ESX.ShowInventory()
end
end)
RegisterCommand('showinv', function()
if not ESX.PlayerData.dead then
ESX.ShowInventory()
end
end)
RegisterKeyMapping('showinv', TranslateCap('keymap_showinventory'), 'keyboard', 'F2')
end
-- disable wanted level