# Gw Studio CraftingV2 System

## &#x20;GW CRAFTING V2 - PREMIUM REDM SYSTEM

Thank you for purchasing GW Crafting! This script is a highly modernized, fully optimized crafting system for VORP Core.

## &#x20;\[ FEATURES ]

* 🚀 Zero-Lag UI: Uses a highly optimized Native Fetch communication layer instead of outdated jQuery post, guaranteeing 0 stuck cursors or NUI bugs.
* 🎨 True Glassmorphism Design: Beautiful, translucent 4K premium UI rendering.
* 📈 Leveling & XP System: Built-in DB logic tracking each character's crafting XP. Items unlock visually to the player dynamically at specific levels.
* 🧰 Dynamic Inventory Images: 100% interconnected with `vorp_inventory`. (It automatically grabs the item pictures, NO local image folder required!)
* 🛠️ Job Locked Zones: Multiple tables with native VORP job whitelists.

## &#x20;\[ INSTALLATION ]

1. Download and extract the folder into your `resources` directory.
2. MAKE SURE the folder name is STRICTLY `gw_crafting`. (Do not rename).
3. Run the provided `ItemDB.sql` or `migration.sql` in your database. CRUCIAL: The script automatically adds `crafting_level` and `crafting_xp` to your players' characters table. Make sure they exist.
4. Ensure `oxmysql` and `vorp_core` are actively running on your server.
5. Add `ensure gw_crafting` to your `server.cfg`.

## &#x20;\[ HOW TO ADD NEW RECIPES ]

In the `config.lua`, you can add entirely new tables or append to existing ones.

1. `allowedMaterials`: A list of every valid material string ID present in the zone.
2. `craftingRecipes`: A list of weapons or items.
3. Every item requires:
   * `label`: Name of the item
   * `typ`: "weapon" or "item"
   * `materials`: { \["wood"] = 2 } (what it takes to craft)
   * `percent`: (1-100) The chance of successful craft.
   * `level`: What Crafting Level is needed to attempt it.
   * `xp`: How much XP is awarded on a successful craft.

## &#x20;\[ COMMON ISSUES ]

Q: Why are images missing? (Box icon or blank) A: The UI asks `vorp_inventory/html/img/items/[itemname].png` for images. Ensure your inventory images are configured correctly and named after the item ID!

Q: I renamed the script and my mouse is stuck! A: Do not rename the folder. It must be named `gw_crafting` due to native JS NUI paths.

Enjoy!\
\
Discord Link / <https://discord.gg/md53jH7Wy6> \
\
For any question join our discord and open a ticket !\
\
have Fun \
\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gw-studio-1.gitbook.io/installation/gw-studio-craftingv2-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
