getItemsByNames
Description
Returns a list of all matching items from the player's inventory.
Parameters
identifier
(string): The source of the player.items
(table): A list of item names/keys to look for.
Return Value
Returns a table of matching item tables.
Example Use Case
local tools = ps.getItemsByNames(source, {"screwdriver", "pliers"})
for _, tool in ipairs(tools) do
print("Tool: " .. tool.name)
end
Last updated