From 094becc2e2a01a9c9d6b7abf6a9b8008f10df5aa Mon Sep 17 00:00:00 2001 From: Arctos2win <116841243+Arctos2win@users.noreply.github.com> Date: Tue, 3 Oct 2023 08:34:54 +0200 Subject: [PATCH] quick fix --- [core]/es_extended/client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 22485fc4..a29f8312 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -36,7 +36,7 @@ function ESX.SearchInventory(items, count) end end - return #items > 1 and data or data[items[1]] + return #items == 1 and data[items[1]] or data end function ESX.SetPlayerData(key, val)