diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index b7f6ffdf..22485fc4 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[1] + return #items > 1 and data or data[items[1]] end function ESX.SetPlayerData(key, val)