Installation

Steps to install the script

Step 1 : Configuring Items

Add the following lines to the ox_inventory\data\items.lua file to define the new items used by the crafting system:

['scrapmetal'] = {
    label = 'Ferraille',
    weight = 30,
    stack = true,
    close = false,
    description = 'Ferraille'
},

['iron'] = {
    label = 'Fer',
    weight = 30,
    stack = true,
    close = false,
    description = 'Fer'
},

['copper'] = {
    label = 'Cuivre',
    weight = 30,
    stack = true,
    close = false,
    description = 'Cuivre'
},

['steel'] = {
    label = 'Acier',
    weight = 30,
    stack = true,
    close = false,
    description = 'Acier'
},

['plastic'] = {
    label = 'Plastique',
    weight = 30,
    stack = true,
    close = false,
    description = 'Plastique'
},

['rubber'] = {
    label = 'Caoutchouc',
    weight = 30,
    stack = true,
    close = false,
    description = 'Caoutchouc'
},
    
['aluminium'] = {
    label = 'Aluminium',
    weight = 30,
    stack = true,
    close = false,
    description = 'Aluminium'
},

['gunpowder'] = {
    label = 'Poudre à canon',
    weight = 30,
    stack = true,
    close = false,
    description = 'Poudre à canon'
},

Step 2 : Adding Images

To properly display item images in the game:

  1. Copy the images from the kr_craft\html\images folder.

  2. Paste them into the ox_inventory\web\images folder.

Everything is set, let's move on to configuring the script.

Last updated