GetItemCount
Gets the count of an item in a player's inventory, with optional metadata matching.
Syntax:
Bridge.Inventory.GetItemCount(src, item, metadata)
Parameters:
src
(number) - Player server IDitem
(string) - Name of the itemmetadata
(table) - Specific item metadata to match
Example:
local Bridge = exports['community_bridge']:Bridge()
-- Get count of lockpicks
local count = Bridge.Inventory.GetItemCount(source, "lockpick")
print("Player has " .. count .. " lockpicks")
Last updated