⚙️Configuration

Configuration for mWeed Resource

Framework Configuration

You can choose between oldesx, newesx, newqb, oldqb, autodetect and standalone in config file.

Config.Framework = 'autodetect' 

Interaction Handler Configuration

Interaction handler for peds.

Config.InteractionHandler = "ox_target"  -- qb-target, ox_target, drawtext or custom

Ff it's selected to custom you can edit it from client/interaction.lua

Text UI Handler Configuration

Text ui handler to open weed menu.

Config.TextUIHandler = 'default' -- default, esx_textui, qb_default_textui, custom

If it's selected to custom you can edit it from client/editable.lua

Progress Time Configuration

Time for how long it will take to procedures.

Config.ActionTimes = {
    ["dig"] = 10000,
    ["fertilizer"] = 10000,
    ["planting_seed"] = 10000,
    ["closing_area"] = 10000,
    ["watering"] = 10000,
    ["floundering"] = 10000,
    ["destroying"] = 3000,
    ["grinding_weed"] = 10000,
    ["rolling_joint"] = 10000,
}

Item Names Configuration

If default items get conflict with an existing item in your server you can change it from here

Config.Items = { 
    -- if you change the item name don't forget to change image name located at mWeed\html\assets\item_images
    ["indica_seed"] = { -- dont change the key 
        name = "indica_seed", -- item name
        label = "Indica Seed", -- label displayed in ui 
    },
    ["sativa_seed"] = { -- dont change the key 
        name = "sativa_seed", -- item name
        label = "Sativa Seed", -- label displayed in ui
    },
    ["indica_weed"] = { -- dont change the key 
        name = "indica_weed", -- item name
        label = "Indica Weed", -- label displayed in ui 
    },
    ["sativa_weed"] = { -- dont change the key 
        name = "sativa_weed", -- item name
        label = "Sativa Weed", -- label displayed in ui
    },    
    ["fertilizer"] = { -- dont change the key 
        name = "fertilizer", -- item name
        label = "Fertilizer", -- label displayed in ui
    },
    ["quality_fertilizer"] = { -- dont change the key 
        name = "quality_fertilizer", -- item name
        label = "Quality Fertilizer", -- label displayed in ui
    },
    ["spray"] = { -- dont change the key 
        name = "spray", -- item name
        label = "Spray", -- label displayed in ui
    }, 
    ["water"] = { -- dont change the key 
        name = "water", -- item name
        label = "Water",  -- label displayed in ui
    },
    ["grubber"] = { -- dont change the key 
        name = "grubber", -- item name
        label = "Grubber", -- label displayed in ui
    },
    ["raw_paper"] = { -- dont change the key 
        name = "raw_paper", -- item name
        label = "Raw Paper", -- label displayed in ui
    },
    ["grinder"] = { -- dont change the key 
        name = "grinder", -- item name
        label = "Grinder", -- label displayed in ui
    },
    ["indica_joint"] = { -- dont change the key 
        name = "indica_joint", -- item name
        label = "Indica Joint", -- label displayed in ui
    },
    ["sativa_joint"] = { -- dont change the key 
        name = "sativa_joint", -- item name
        label = "Sativa Joint", -- label displayed in ui
    },
    ["lemon_haze_joint"] = { -- dont change the key 
        name = "lemon_haze_joint", -- item name
        label = "Lemon Haze Joint", -- label displayed in ui
    },
    ["purple_haze_joint"] = { -- dont change the key 
        name = "purple_haze_joint", -- item name
        label = "Purple Haze Joint", -- label displayed in ui
    },
    ["grinded_indica"] = { -- dont change the key 
        name = "grinded_indica", -- item name
        label = "Grinded Indica", -- label displayed in ui
    },
    ["grinded_sativa"] = { -- dont change the key 
        name = "grinded_sativa", -- item name
        label = "Grinded Sativa", -- label displayed in ui
    },
}

Water And Floundering Status Configuration

Time to reduce watering and floundering status.

Config.GeneralSettings = {
    decayTime = function() 
        return math.random(30000, 60000) 
      end
    }

Plant Waste Scenario Configuration

Revival rate if the player did not use Quality Fertilizer and water or floundering status drops to 0 (higher number means more luck) (set the number between 1-100).

Config.GeneralSettings.revivalRate = 40

Production Quantity Configuration

Items to be given after the player rolls the weed you can change it by your like.

Config.GeneralSettings.  rewardItems = {
        ["grinded_sativa"] = {
            maxamount = 4,
            items = {
                {
                    name = Config.Items['sativa_joint'].name,
                    label =  Config.Items['sativa_joint'].label,
                },
                {
                    name = Config.Items['lemon_haze_joint'].name,
                    label =  Config.Items['lemon_haze_joint'].label,
                },
                {
                    name = Config.Items['purple_haze_joint'].name,
                    label = Config.Items['purple_haze_joint'].label,
                },
            }
        },
        ["grinded_indica"] = {
            maxamount = 4,
            items = {
                {
                    name = Config.Items['indica_joint'].name,
                    label = Config.Items['indica_joint'].label,
                }
            },
        },
    }, 

Last updated