> For the complete documentation index, see [llms.txt](https://moon-store.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moon-store.gitbook.io/docs/delivery-job-creator/installation-guide.md).

# Installation Guide

## **Step 1: Run SQL Script**

1. Open your SQL database.
2. Run the following script to create the necessary table:

   ```sql
   CREATE TABLE `deliveries` (
   	`id` INT(11) NOT NULL AUTO_INCREMENT,
   	`citizen_id` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci',
   	`firstname` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci',
   	`lastname` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci',
   	`delivery` INT(3) NOT NULL DEFAULT '0',
   	`job` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci',
   	PRIMARY KEY (`citizen_id`) USING BTREE,
   	INDEX `id` (`id`) USING BTREE
   )
   COLLATE='latin1_swedish_ci'
   ENGINE=InnoDB
   AUTO_INCREMENT=0;
   ```

***

## **Step 2: Add Items in `items.lua`**

1. Open your `qb-core/shared/items.lua`.
2. Add the following items:

   ```lua
   ['delivery_box1'] = {
       ['name'] = 'delivery_box1',
       ['label'] = 'Delivery Box',
       ['weight'] = 200,
       ['type'] = 'item',
       ['image'] = 'deliverybox.png',
       ['unique'] = false,
       ['useable'] = true,
       ['shouldClose'] = true,
       ['combinable'] = nil,
       ['description'] = 'Contains Hot Meal!',
       ["created"] = nil,
       ["decay"] = 2.0,
       ["delete"] = true
   },
   ['delivery_recive'] = {
       ['name'] = 'delivery_recive',
       ['label'] = 'Delivery Invoice',
       ['weight'] = 200,
       ['type'] = 'item',
       ['image'] = 'delivery_recive.png',
       ['unique'] = false,
       ['useable'] = true,
       ['shouldClose'] = true,
       ['combinable'] = nil,
       ['description'] = 'Invoice To Get Paid!',
       ["created"] = nil,
       ["decay"] = 5.0,
       ["delete"] = true
   },

   ```

***

## **Step 3: Update `player.lua`**

1. Navigate to `[qb] -> qb-core -> server -> player.lua`.
2. Add the following line inside the file

   ```lua
      PlayerData.metadata['zomatoxp'] = PlayerData.metadata['zomatoxp'] or 0
   ```

***
