From 70c52130077b2a9fda3b812f1ce7f170bd52d8f5 Mon Sep 17 00:00:00 2001 From: Thekuca Date: Fri, 22 Dec 2023 15:35:39 +0100 Subject: [PATCH] refactor(es_extended/client/main): use esx keymapping function --- [core]/es_extended/client/main.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/[core]/es_extended/client/main.lua b/[core]/es_extended/client/main.lua index dd64baa83..82d2e7459 100644 --- a/[core]/es_extended/client/main.lua +++ b/[core]/es_extended/client/main.lua @@ -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