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

This commit is contained in:
Thekuca
2023-12-22 15:35:39 +01:00
parent 5b68454113
commit 70c5213007
+1 -3
View File
@@ -453,13 +453,11 @@ function StartServerSyncLoops()
end
if not Config.OxInventory and Config.EnableDefaultInventory then
RegisterCommand('showinv', function()
ESX.RegisterInput('showinv', TranslateCap('keymap_showinventory'), 'keyboard', 'F2', function()
if not ESX.PlayerData.dead then
ESX.ShowInventory()
end
end)
RegisterKeyMapping('showinv', TranslateCap('keymap_showinventory'), 'keyboard', 'F2')
end
-- disable wanted level