Products
Categories
The
Config.Categoriestable is the core of the marketplace. It allows you to organize products into distinct groups, control who can see them, and define the specific attributes for every item available for purchase.
Each category is defined by a unique key index and contains three main components:
label: The display name of the category as seen by players in the UI.canAccess: A server-side function that receives theplayerId. It must returntrueto display the category orfalseto hide it (and all its items) from that specific player. Useful for job-locked or reputation-locked items.items: An array of tables containing the products available in that category.
Items Structure
All items must have the following structure:
name:
stringItem namelabel:
stringItem labelstock:
numberStarting stockprice:
numberProduct priceaccount:
stringAccount name for purchaseaccount:
labelAccount label for UIprobability:
numberFrom 0 to 100, prob from getting the item added to the shop in every refreshimage?:
stringImage custom URLextension?:
stringThe image file extension to use when not providing a custom URL. Use this if your inventory uses an extension other than .png (e.g., .webp)
Example
Last updated