From e49947449be1bf041ca22c09630528d55ffc2ce7 Mon Sep 17 00:00:00 2001 From: Thekuca Date: Fri, 22 Dec 2023 15:25:21 +0100 Subject: [PATCH] Revert "refactor(es_extended/client/main): use esx function for keymapping" This reverts commit 47920b73fdb64849315334da9fd854d93b085dde. --- [core]/es_extended/client/main.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/[core]/es_extended/client/main.lua b/[core]/es_extended/client/main.lua index bdbcc2c0a..dd64baa83 100644 --- a/[core]/es_extended/client/main.lua +++ b/[core]/es_extended/client/main.lua @@ -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