Description
Returns the total count of a specific item in the player's inventory.
Parameters
identifier (string): The source of the player.
identifier
item (string): The name/key of the item.
item
Return Value
Returns the number of that item the player has.
Example Use Case
local itemCount = ps.getItemCount(source, "phone") print("Player has " .. itemCount .. " phones.")
Last updated 5 months ago