# le-crafting

{% embed url="<https://www.youtube.com/watch?v=JdaZOE4sX_0>" %}
Preview
{% endembed %}

## Installation Guide

1. Execute the following SQL code in your database:&#x20;

```sql
CREATE TABLE `le_crafting` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(255) DEFAULT NULL,
  `xp` int(11) DEFAULT NULL,
  PRIMARY KEY (`index`),
  UNIQUE KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
```

2. Place `le-crafting` file in your `resources` forder
3. Add the script to your `server.cfg`
4. Go to the `config.lua` file and setup to your preferences

## Image item

To display the image of your items in the crafting menu and books, you need to modify `Config.ImageLink` in the `config.lua` file. You should set the link to your images from the resource folder that contains them. For example, if my images are in the html/images folder of the `qb-inventory` script, I would set it to `/qb-inventory/html/images`. If I am using `ox-inventory`, it would be `/ox_inventory/web/images`


---

# 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://test-360.gitbook.io/leroux-scripts/scrips/le-crafting.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.
