RemovePlayerItem
Removes an Item from the player inventory.
Params
Name
Optional
Example
source
no
1
itemName
no
bread
amount
no
1
Usage
local api = exports["bb_inventory"]:GetAPI()
local successful, removedCount = api.RemovePlayerItem(1, "bread", 5)
local successful, removedCount = exports["bb_inventory"]:RemovePlayerItem(1, "bread", 5)
print(successful, addedCount)
--- true, 3
Last updated