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)