Skip to content

Commit

Permalink
Revert "refactor(es_extended/client/main): use esx function for keyma…
Browse files Browse the repository at this point in the history
…pping"

This reverts commit 47920b7.
  • Loading branch information
Thekuca committed Dec 22, 2023
1 parent 47920b7 commit e499474
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions [core]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e499474

Please sign in to comment.