# Installation

1. Download the purchased resource from [keymaster](https://keymaster.fivem.net/asset-grants) or [cfx portals](https://portal.cfx.re/) - the official site of fivem with purchased resources.
2. Unzip the  `g-order-system`
3. Create a Folder - In your resources directory, create a new folder and name it `[g-scripts]`if it has not already been created.
4. Drag `g-order-system` in to `[g-scripts]`

## Arrangement

Add this line in your <mark style="color:red;">server.cfg</mark> file

```
ensure [g-scripts]
```

<h2 align="center"><strong>Frameworks Compatibility</strong></h2>

✅ **Automatic Framework Detection**

Dependencies &  Direct Links

The script automatically detects the framework you're using—no manual setup is required.

**Supported Frameworks**

* QBCore
* QBox
* ESX (v1.11.0 or newer)

| Dependency                | Download link                                                                                                                                                                                                                                                           |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| oxmysql                   | <https://github.com/overextended/oxmysql/releases>                                                                                                                                                                                                                      |
| g-notification (optional) | <p>Link 1 - <a href="https://groot-development.tebex.io/package/6838310"><https://groot-development.tebex.io/package/6838310></a><br>Link 2 - <a href="https://groot-development.tebex.io/package/6838305"><https://groot-development.tebex.io/package/6838305></a></p> |

<h2 align="center">Database</h2>

**Automatic SQL Insertion**

If you enable `Config.AutoImportSQL` in `[g-order-system/src/shared/Config.lua]`, the script will automatically insert the required SQL when the resource starts. Once the SQL has been added successfully, you can set this option to `false`.

**Manual SQL Insertion**

If you prefer to add the SQL manually, the necessary queries are available in the `g-adv-paycheck/sqls` folder.

## Inventory Items Images

1. All inventory item images for &#x67;**-order-system** can be found in the following directory: `g-order-system/_INSTALL/inventoryimages`&#x20;

## Inventory items

{% tabs %}
{% tab title="ox\_inventory" %}

```lua
["pos_tablet"] = {
	label = "Order Tablet",
	weight = 1200,
	stack = false,
	close = true,
},
["pos_receipt"] = {
	label = "Receipt",
	weight = 20,
	stack = false,
	close = true,
},
```

{% endtab %}

{% tab title="qb-inventory" %}

```lua
pos_tablet = {
    name = "pos_tablet",
    label = "POS Tablet",
    weight = 1200,
    type = "item",
    image = "pos_tablet.png",
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = "A tablet used for point of sale.",
},

pos_receipt = {
    name = "pos_receipt",
    label = "Receipt",
    weight = 20,
    type = "item",
    image = "pos_receipt.png",
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = "A receipt used for point of sale.",
},
```

{% endtab %}

{% tab title="origen\_inventory" %}

```lua
['pos_tablet'] = {
    name = "pos_tablet",
    label = "POS Tablet",
    weight = 1200,
    type = "item",
    image = "pos_tablet.png",
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = "A tablet used for point of sale.",
},

['pos_receipt'] = {
    name = "pos_receipt",
    label = "Receipt",
    weight = 20,
    type = "item",
    image = "pos_receipt.png",
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = "A receipt used for point of sale.",
},
```

{% endtab %}

{% tab title="Can’t find your inventory item?" %}
No worries! Please join our Discord and create a ticket. We’ll also make compatibility with your inventory.\
**Note:** Our system works with any inventory that supports metadata.\
Discord Link – <https://discord.gg/Nm5FSxK2gv>
{% endtab %}
{% endtabs %}
