AddItem
Adds an item to a player's inventory with optional metadata.
Bridge.Inventory.AddItem(src, item, count, slot, metadata)local Bridge = exports['community_bridge']:Bridge()
-- Add 1 phone with metadata
local success = Bridge.Inventory.AddItem(source, "phone", 1, nil, { number = "555-123-4567" })
if success then
print("Added phone to inventory")
else
print("Failed to add phone")
endLast updated