πInventories
Adding Custom Inventory Support
π¦ Adding Custom Inventory Support
The ZAT Boss Menu supports multiple inventory systems, and you can easily add support for your preferred inventory system by following these simple steps.
π Folder Structure
Your inventory implementations should be placed in the server/inventories/ folder:
server/
βββ inventories/
βββ qb/
β βββ main.lua
βββ ox/
β βββ main.lua
βββ YOUR_INVENTORY_NAME/ β Add your custom folder here
βββ main.luaπ οΈ Creating a Custom Inventory Handler
Step 1: Create the Folder
Create a new folder inside server/inventories/ with the name of your inventory resource (e.g., qs-inventory, chezza-inventory, ps-inventory).
Step 2: Create the main.lua File
main.lua FileInside your new folder, create a main.lua file with the following template:
lua
π Required Implementation
You MUST implement the zat-bossmenu:server:openStash event handler in your file. This event receives:
stashName(string): The unique identifier for the organization's stash
Last updated