![]() |
FrameworkZ 10.8.3
Provides a framework for Project Zomboid with various systems.
|
The Inventories module for FrameworkZ. Defines and interacts with INVENTORY object. More...
Public Member Functions | |
void | GetInventoryByID (id) |
void | GetItemByUniqueID (inventoryID, uniqueID) |
void | GetItemCountByID (inventoryID, uniqueID) |
integer | Initialize (id, object) |
Initialize an inventory. | |
table | New (username, type, id) |
Create a new inventory object. | |
table | Rebuild (isoPlayer, inventory, items) |
Recursively traverses the inventory table for missing data while referencing the item definitions to rebuild the inventory. | |
Data Fields | |
FrameworkZ Inventories | __index |
Character | |
Container | |
FrameworkZ | Inventories |
FrameworkZ Inventories | List |
FrameworkZ Inventories | Types |
Vehicle | |
The Inventories module for FrameworkZ. Defines and interacts with INVENTORY object.
Definition at line 15 of file Inventories.lua.
Create a new inventory object.
username | string The owner's username. Can be nil for no owner. |
type | string The type of inventory. Can be nil, but creates a character inventory type by default. Refer to FrameworkZ.Inventories.Types table for available types. |
id | string The inventory's ID. Can be nil for an auto generated ID (recommended). |
FrameworkZ Inventories __index |
Definition at line 17 of file Inventories.lua.
FrameworkZ::Inventories::Character |
Definition at line 23 of file Inventories.lua.
FrameworkZ::Inventories::Container |
Definition at line 25 of file Inventories.lua.
Definition at line 29 of file Inventories.lua.
FrameworkZ Inventories List |
Definition at line 19 of file Inventories.lua.
FrameworkZ Inventories Types |
Definition at line 21 of file Inventories.lua.
FrameworkZ::Inventories::Vehicle |
Definition at line 27 of file Inventories.lua.