➑️Install

Requirements

SD_Lib

  1. Download the latest release of SD_Lib.

  2. Follow the Installation & Integration guide from SD_Lib.

Target System

  1. Download the latest release of the target system of your choice.

  2. Follow the installation guide of your target system

xSound (Optional)

We've added some sounds, but you can only hear them with xSound. (This is not required for the script to work, you just won't hear those).

  1. Download the latest release of xSound.

  2. Add xSound to your resources folder.

  3. Add the ensure xsound to your server.cfg. (Before or after exp_trainheist shouldn't be an issue)

Adding Items

Images

Here are some images you can use from bitc0de's items gallery.

Inventories

ox_inventory

  1. Add the following lines to your ox_inventory/data/items.lua.

```lua
grinder = {
    label = "Grinder",
    weight = 1000,
},

gold_ingot = {
    label = "Gold Ingot",
    weight = 1000,
},
```
  1. Choose icon items from the images above and save them. You can also get custom ones yourself.

  2. Rename the files to grinder and gold_ingot.

  3. Add the files to ox_inventory/web/images.

esx_inventory

  1. Execute the following lines on your database.

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('grinder', 'Grinder', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('gold_ingot', 'Gold Ingot', 1, 0, 1);
  1. Choose icon items from the images above and save them. You can also get custom ones yourself.

  2. Rename the files to grinder and gold_ingot.

  3. Add the files to esx_inventory/html/img/items.

qb-inventory

  1. Add the following lines to your qb-core/shared/items.lua.

```lua
grinder = { name = 'grinder', label = 'Grinder', weight = 1000, type = 'item', image = 'grinder.png', unique = true },
gold_ingot = { name = 'gold_ingot', label = 'Gold Ingot', weight = 1000, type = 'item', image = 'gold_ingot.png', unique = true },```
  1. Choose icon items from the images above and save them. You can also get custom ones yourself.

  2. Rename the files to grinder and gold_ingot.

  3. Add the files to qb-inventory/html/images.

Starting the resource

  1. Add the following line to your server.cfg.

ensure exp_trainheist
  1. Restart your server.

  2. Enjoy! πŸš€

Last updated