Adds a item to the player inventory
source
no
1
itemName
bread
amount
metadata
yes
{ test = 'test' }
local api = exports["bb_inventory"]:GetAPI() local successful, addedCount = api.AddPlayerItem(1, "bread", 5) local successful, addedCount = exports["bb_inventory"]:AddPlayerItem(1, "bread", 5) print(successful, addedCount) --- true, 3
Last updated 25 days ago