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

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