diff --git a/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua b/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua index 939b63072..09fb2ebe8 100644 --- a/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua +++ b/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua @@ -1,11 +1,9 @@ -local self = {} - -self.name = name -self.owner = owner -self.items = items +local self, name, owner, items = {}, {}, {}, {} +self.name = name +self.owner = owner +self.items = items function CreateAddonInventory() - function self.addItem(name, count) local item = self.getItem(name) item.count = item.count + count