# Wonder Warehouse

## Installation

### Putting script to server

* Download script from [keymaster](https://keymaster.fivem.net/)
* Put in your server files
* put **ensure wonder\_warehouse** in your server.cfg

### Creating key items

* in folder items you have **images** and **items.lua**
* put all images into **ox\_inventory/web/images**
* put this bellow (same as you have in **items.lua**) into **ox\_inventory/data/items.lua**

```lua
['warehouse_key'] = {
    label = 'Key',
    weight = 30,
    stack = false,
},
```

### Inserting into database

* open your program where you work with your server database
* find **import file** button
* select **import.sql** file

```sql
CREATE TABLE IF NOT EXISTS `wonder_warehouse` (
  `charid` varchar(50) NOT NULL,
  `warehouse_id` int(16) NOT NULL AUTO_INCREMENT,
  `id_warehouse_kc` varchar(8) DEFAULT NULL,
  `purchased` varchar(50) DEFAULT 'no',
  `pincode` int(4) DEFAULT NULL,
  `opened` varchar(50) DEFAULT 'no',
  PRIMARY KEY (`warehouse_id`)
);
```


---

# 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://theadam4.gitbook.io/wonder-scripts-docs/scripts/wonder-warehouse.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.
