SocietyGetItem
Get data of an item from the society inventory
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
Society | string | - | The society name | |
Item | string | - | The item name |
Dont need to be called every frame
Returns
Child | Data Type | Description |
---|---|---|
name | string | Item name |
count | number | Item count |
label | string | Item label |
weight | number | Item weight |
usable | boolean | Whether or not the item is usable |
rare | boolean | Whether or not the item is rare |
canRemove | boolean | Whether or not the item can be thrown |
Example
local itemData = SocietyGetItem("police", "bread")
local itemData = SocietyGetItem("police", "bread")
-- itemData.name = "bread"
-- itemData.count = 1
-- ...
Last update: April 12, 2022
Created: June 27, 2021
Created: June 27, 2021