Crafting

crafting.lua

These functions support crafting logic, such as opening crafting menus, handling multi-craft operations, and creating item data from recipes.

craftingMenu(data)

Opens a menu for selecting the quantity to craft.

Presents the player with multiple crafting quantities based on Config.Crafting.MultiCraftAmounts.

Parameters:

  • item (string): The item to craft.

  • craft (table): The crafting recipe.

  • craftable (table): Crafting options.

  • coords (vector3): Where crafting occurs.

  • stashName (string): The stash name(s) for item availability.

  • onBack (function): Callback when returning.

  • metadata (table, optional): Metadata for the crafted item.

Example:



Last updated