If you want to see more resources like this, become a Patreon supporter!
No description entered
ItemManager.AddOnEquipBuff(itemId, buffId, add)
itemId
: A string representing the UUID of an itembuffId
: A string representing the UUID of a buffadd
: A boolean determining whether the buff is added or removednil
Instantiates a copy of the specified item and returns the instance ID
local instanceId = ItemManager.CreateItem(itemId, health, amount)
itemId
: A string representing the UUID of an itemhealth
: A number from 0 to 100 indicating the durability of an itemamount
: A number indicating the quantity of an itemstring
Returns item userdata associated with the specified UUID
local result = ItemManager.GetItem(itemId)
itemId
: A string representing the UUID of an item
userdata
Returns the name of an item as a string
local result = ItemManager.GetItemName(itemId)
itemId
: A string representing the UUID of an item
string
Returns the owning entity of an item
local result = ItemManager.GetItemOwner(itemId)
itemId
: A string representing the UUID of an item
userdata
Returns the UI name of an item as a string
local result = ItemManager.GetItemUIName(itemId)
itemId
: A string representing the UUID of an item
string
Returns true
if the specified item is oversized
local result = ItemManager.IsItemOversized(itemId)
itemId
: A string representing the UUID of an item
boolean
Removes the specified item
ItemManager.RemoveItem(itemId)
itemId
: A string representing the UUID of an item
nil
Changes the ownership of an item
ItemManager.SetItemOwner(itemId, ownerId, markAsStolen)
itemId
: A string representing the UUID of an itemownerId
: A string representing the UUID of the item's new ownermarkAsStolen
A boolean determining whether the item is stolennil