getItemCount

Description

Returns the total count of a specific item in the player's inventory.

Parameters

  • identifier (string): The source of the player.

  • item (string): The name/key of the 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