> For the complete documentation index, see [llms.txt](https://giftspackaging.killstore.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://giftspackaging.killstore.net/installation/install.md).

# Install

## Step 1: Create a folder

1. Go to the `resources` folder in your FiveM server directory.
2. Create a new folder inside it.
3. Name the folder exactly **\[Killstore]** (make sure to include the square brackets!).

## Step 2:  Ensure the Script

1. Download your **Ks\_Gift\_Packaging** script from your Keymaster account.
2. Move the **Ks\_Gift\_Packaging** folder into the **\[Killstore]** folder you just created.
3. Open the `server.cfg` file located in your FiveM server's main directory.
4. Add the following line **after your inventory system**:

```
ensure [Killstore]
```

It should finally look like this

```lua
# ...
ensure Your_framework
# ...
ensure Inventory
ensure [Killstore]
```

## Step 3: install the items

Inside the **Ks\_Gift\_Packaging** folder, you will find an installation folder:

`Ks_Gift_Packaging/[1]Install :`&#x20;

1. Open this folder, where you will find:
   * An **items** folder containing files in `.lua` or `.sql` format, depending on your inventory system.
   * An **images** folder containing icons for the items.
2. Follow the instructions provided in the relevant `.lua` or `.sql` file to install the items into your inventory system.
3. Copy the item icons from the **images** folder into your inventory’s image directory.

## Step 4: Install the SQL

Inside the **Ks\_Gift\_Packaging/\[1]Install** folder, you will find a SQL file to create the database table. The contents of the file are as follows:

```sql
CREATE TABLE `ks_gifts` (
  `id` int(11) NOT NULL,
  `creator` varchar(255) NOT NULL,
  `box` varchar(50) DEFAULT NULL,
  `gift_id` varchar(255) NOT NULL,
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`items`)),
  `message` text DEFAULT NULL,
  `date` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;


ALTER TABLE `ks_gifts`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `ks_gifts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
```
