πŸ‘œ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

Inside 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