ox_inventory

Add Items:

  1. Copy the image files from the img folder to your inventory folder.

  2. Add the following codes to your ox-inventory > data >items.lua file under the Items section:

 ['femaleseed'] = {
        label = 'Female Marijuana Seed',
        weight = 500,
        consume = 0,
        client = {
            image = "weed-seed.png",
        },
        server = {
            export = 'rep-weed.femaleseed',
        },
        close = true,
        description = 'Surely I can just plant this, right?'
    },
    ['maleseed'] = {
        label = 'Male Marijuana Seed',
        weight = 500,
        client = {
            image = "weed-seed.png",
        },
        description = 'Add this to a planted female seed to make it pregnant? You are pretty sure this seed has a penis.'
    },
    ['wateringcan'] = {
        label = 'Watering Can',
        weight = 2500,
        consume = 0,
        server = {
            export = 'rep-weed.wateringcan',
        },
        close = true,
        description = 'Fill this at a river or lake.'
    },
    ['fertilizer'] = {
        label = 'Fertilizer',
        weight = 500,
        description = 'Cool'
    },
    ['wetbud'] = {
        label = 'Wet Bud (100 grams)',
        weight = 7500,
        client = {
            image = "wet.png",
        },
        description = 'THIS CANT BE DRIED WITHOUT STRAIN... Needs to be stored somewhere dry.'
    },
    ['driedbud'] = {
        label = 'Dried Bud (100 Grams)',
        weight = 2500,
        consume = 0,
        server = {
            export = 'rep-weed.driedbud',
        },
        close = true,
        description = 'Pack It?'
    },
    ['weedpackage'] = {
        label = 'Suspicious Package',
        weight = 5000,
        consume = 0,
        server = {
            export = 'rep-weed.weedpackage',
        },
        close = true,
        description = 'Marked for Police Seizure'
    },
    ['qualityscales'] = {
        label = 'Quality Scales',
        weight = 500,
        consume = 0,
        description = 'Weighs Baggies with no loss'
    },
    ['smallscales'] = {
        label = 'Small Scales',
        weight = 250,
        description = 'Weighs Baggies with minimal loss'
    },
    ['joint'] = {
        label = '2g Joint',
        weight = 200,
        consume = 0,
        server = {
            export = 'rep-weed.joint',
        },
         close = true,
        description = 'Its a Joint, man.'
    },
    ['emptybaggies'] = {
        label = 'Empty Baggies',
        weight = 100,
        description = 'Empty Baggies'
    },
    ['weedbaggie'] = {
        label = 'Baggie (7g)',
        weight = 300,
        consume = 0,
        server = {
            export = 'rep-weed.weedbaggie',
        },
         close = true,
        description = 'Sold on the streets'
    },
    ['rollingpaper'] = {
        label = 'Rolling Paper',
        weight = 100,
        description = 'Required to roll joints!'
    },

Dry:

Step 1:

Go to ox_inventory/client.lua

  1. Look for the following code block:

  1. Add the following code directly above that SendNuiMessage function

Step 2:

Go to \modules\inventory\server.lua

  1. Look for the following code:

  1. Add the following code directly AFTER that whole function:

Step 3:

Go to \modules\inventory\server.lua

  1. Look for the following code:

  1. Replace it with code:

  1. If you want weed to also dry in trunk, player or glove trunk, repeat the same process.

Give Item with metadata:

Step 1:

Go to /server.lua

  1. Look for the following code:

  1. Replace the whole function with this code.

Last updated