Core Inventory

Improve compatibility between our Weed Growing & core_inventory

Are you using metadata?

This guide is only necessary if you have metadata enabled (set to true) in the Config.Setup part of the Weed Growing config! If you have metadata disabled (false) you do not need to follow any of the steps found here.

Step 1

Navigate to core_inventory/config.lua and find the "ShownMetadata" section, it should look like this:

    ----------------------------
    -- SHOW METADATA SETTINGS --
    ----------------------------
    ShownMetadata = { -- Metadata that will be shown in information of the item. For example idcard will show firstname and lastname
        ['firstname'] = 'Firstname',
        ['lastname'] = 'Lastname',
        ['dob'] = 'Date of birth',
        ['sex'] = 'Sex',
        ['height'] = 'Height'
    },

Step 2

Simply add the following to the ShownMetadata list:

        ['purity'] = 'Purity',
        ['quality'] = 'Remaining'

It should now look similar to this:

    ----------------------------
    -- SHOW METADATA SETTINGS --
    ----------------------------
    ShownMetadata = { -- Metadata that will be shown in information of the item. For example idcard will show firstname and lastname
        ['firstname'] = 'Firstname',
        ['lastname'] = 'Lastname',
        ['dob'] = 'Date of birth',
        ['sex'] = 'Sex',
        ['height'] = 'Height',
        ['purity'] = 'Purity',
        ['quality'] = 'Remaining'
    },

Save, restart your server & you'll now see the necessary information when you hover over these items in your inventory!

Are you stuck?

No worries! If you need any help or experience any issues after following these instructions feel free to reach out to us via Discord or email at support@lationscripts.com.

Last updated