Install
Step 1: Create a folder
Go to the
resources
folder in your FiveM server directory.Create a new folder inside it.
Name the folder exactly [Killstore] (make sure to include the square brackets!).
Step 2: Ensure the Script
Download your Ks_Gift_Packaging script from your Keymaster account.
Move the Ks_Gift_Packaging folder into the [Killstore] folder you just created.
Open the
server.cfg
file located in your FiveM server's main directory.Add the following line after your inventory system:
ensure [Killstore]
It should finally look like this
# ...
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 :
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.
Follow the instructions provided in the relevant
.lua
or.sql
file to install the items into your inventory system.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:
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;
Last updated