Skip to content

Commit

Permalink
Merge pull request #1278 from Thekuca/dev
Browse files Browse the repository at this point in the history
refactor(es_extended/client/main): use esx keymapping function
  • Loading branch information
Thekuca authored Dec 22, 2023
2 parents e499474 + 70c5213 commit 71516c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions [core]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71516c1

Please sign in to comment.