Configuration

With all of our resources, you also get much configuration, here is some explanation for it!

INFO: Config might contain BETA additions, so it might not be 1:1 as yours

Config Example

Here you can see a config.lua example with all additions you'll need

Config = {}

--[[
   _____             __ _         _       _                      _   _             
  / ____|           / _(_)       (_)     | |                    | | (_)            
 | |     ___  _ __ | |_ _  __ _   _ _ __ | |_ ___ _ __ __ _  ___| |_ _  ___  _ __  
 | |    / _ \| '_ \|  _| |/ _` | | | '_ \| __/ _ \ '__/ _` |/ __| __| |/ _ \| '_ \ 
 | |___| (_) | | | | | | | (_| | | | | | | ||  __/ | | (_| | (__| |_| | (_) | | | |
  \_____\___/|_| |_|_| |_|\__, | |_|_| |_|\__\___|_|  \__,_|\___|\__|_|\___/|_| |_|
                           __/ |                                                   
                          |___/                                                    
]]--
Config.interactDistance = 1.0
Config.Debug = false
--[[ 
DebugWait:
    • DON'T TOUCH THIS, UNLESS YOU KNOW WHAT YOU DOING
    • DON'T SET UNDER 1000 OR YOUR SERVER MIGHT BREAK
]]--
Config.DebugWait = 2000 

--[[
 This is interaction zone configuration
]]-- a

-- Weeed
Config.InteractProps = {"bkr_prop_weed_01_small_01a", "bkr_prop_weed_med_01a", "bkr_prop_weed_lrg_01b",  "dirkdrugz_2", "dirkdrugz_1", "prop_weed_01"}
-- Lights 
Config.LightsProps = {"prop_kino_light_02", "prop_worklight_04c"}
-- Fans
Config.FansProps = {"prop_fan_01"}

Config.WeedSetup = {
    LightSettings = {
        min=16,
        max=30,
    },
    TempSettigs = {
        min = 15,
        max=30,
    },
    WaterSettings = {
        min=50,
    }
}

Config.ProgressUpdateTime = 100000 --100000

-- This is just definition! Dont change that if you dont know what you want. 
Config.Types = {
    PLANT_POT = 1,
    NATURAL = 2,
}

--[[
  _      _           _ _       
 | |    (_)         (_) |      
 | |     _ _ __ ___  _| |_ ___ 
 | |    | | '_ ` _ \| | __/ __|
 | |____| | | | | | | | |_\__ \
 |______|_|_| |_| |_|_|\__|___/
                               
                                                          
]]--

Config.LimitesByType = {
    [Config.Types.PLANT_POT] = 10,
    [Config.Types.NATURAL] = 50,
}


--[[
  _      _           _ _                           _    __ _      _     _ 
 | |    (_)         (_) |                         | |  / _(_)    | |   | |
 | |     _ _ __ ___  _| |_  __      _____  ___  __| | | |_ _  ___| | __| |
 | |    | | '_ ` _ \| | __| \ \ /\ / / _ \/ _ \/ _` | |  _| |/ _ \ |/ _` |
 | |____| | | | | | | | |_   \ V  V /  __/  __/ (_| | | | | |  __/ | (_| |
 |______|_|_| |_| |_|_|\__|   \_/\_/ \___|\___|\__,_| |_| |_|\___|_|\__,_|
                                                                          
                                                                          
]]--
Config.WeedArea = 50.0 -- Distance of weed area / For limits

--[[
   _____             __ _                                                                           
  / ____|           / _(_)                                                                          
 | |     ___  _ __ | |_ _  __ _ _   _ _ __ ___   _   _  ___  _   _ _ __   _ __  _ __ ___  _ __  ___ 
 | |    / _ \| '_ \|  _| |/ _` | | | | '__/ _ \ | | | |/ _ \| | | | '__| | '_ \| '__/ _ \| '_ \/ __|
 | |___| (_) | | | | | | | (_| | |_| | | |  __/ | |_| | (_) | |_| | |    | |_) | | | (_) | |_) \__ \
  \_____\___/|_| |_|_| |_|\__, |\__,_|_|  \___|  \__, |\___/ \__,_|_|    | .__/|_|  \___/| .__/|___/
                           __/ |                  __/ |                  | |             | |        
                          |___/                  |___/                   |_|             |_|        
]]--

-- This is for weed in pot

Config.PropsConfig = {
    whenPotPlaced = "dirkdrugz_2",
    whenDirtPlaced = "dirkdrugz_1"
}

Config.Stages = {
    [10] = "bkr_prop_weed_01_small_01a",
    [11] = "bkr_prop_weed_01_small_01a",
    [40] = "bkr_prop_weed_med_01a",
    [41] = "bkr_prop_weed_med_01a",
    [80] = "bkr_prop_weed_lrg_01b",
    [81] = "bkr_prop_weed_lrg_01b",
}

-- This is for natural weed

Config.NaturalWeedProp = "prop_weed_01"

--[[
   _____             __ _                                        _     
  / ____|           / _(_)                                      | |    
 | |     ___  _ __ | |_ _  __ _   _ __ _____      ____ _ _ __ __| |___ 
 | |    / _ \| '_ \|  _| |/ _` | | '__/ _ \ \ /\ / / _` | '__/ _` / __|
 | |___| (_) | | | | | | | (_| | | | |  __/\ V  V / (_| | | | (_| \__ \
  \_____\___/|_| |_|_| |_|\__, | |_|  \___| \_/\_/ \__,_|_|  \__,_|___/
                           __/ |                                       
                          |___/                                        
]]--

Config.RewardItems = {
    weedItem = {
        name="weed",
        count = {
            min = 2,
            max = 6,
        }
    },
    weedItemNatural = {
        name="weed",
        count = {
            min = 1,
            max = 3,
        }
    },
    ReturnPlantPot = true,
    MoreItems = {
        {
            name="weed_seed",
            count = math.random(1,2),
            chance = 30,
        }
    }
}

Config.PlatPotItemName = "plantpot"

-- This is be zMinus if props jumps
Config.ZCoordChangeByProp = {
     ["bkr_prop_weed_med_01a"] = 2.5,
     ["bkr_prop_weed_lrg_01b"] = 2.5,
}

--[[
  _____ _                     
 |_   _| |                    
   | | | |_ ___ _ __ ___  ___ 
   | | | __/ _ \ '_ ` _ \/ __|
  _| |_| ||  __/ | | | | \__ \
 |_____|\__\___|_| |_| |_|___/
                              
                              
]]--

Config.Items = {
    weed_seed = "weed_seed",
    weed_dirt = "hiqualitysoil",
    weed_water = "water",
    weed_boost = "hiqualnutrients",
    weed_destroy = "lighter",
}

--[[
  _______             _       
 |__   __|           (_)      
    | | ___ _ __ __ _ _ _ __  
    | |/ _ \ '__/ _` | | '_ \ 
    | |  __/ | | (_| | | | | |
    |_|\___|_|  \__,_|_|_| |_|
                              
                                                    
]]--

Config.GrassTerain = {-461750719, -1286696947, -840216541 } -- Grass terain

--[[
           _____  _____   ____  _   _  _____ 
     /\   |  __ \|  __ \ / __ \| \ | |/ ____|
    /  \  | |  | | |  | | |  | |  \| | (___  
   / /\ \ | |  | | |  | | |  | | . ` |\___ \ 
  / ____ \| |__| | |__| | |__| | |\  |____) |
 /_/    \_\_____/|_____/ \____/|_| \_|_____/ 
                                                                                                                       
]]--

Config.AddLights = {
    {
        exportName = "useLight1",
        prop = "prop_kino_light_02",
        itemName = "weed_grow_light1", 
    },
    {
        exportName = "useLight2",
        prop = "prop_worklight_04c",
        itemName = "weed_grow_ledlightsmall", 
    }
}

Config.AddFans = {
    {
        exportName = "useFan",
        prop = "prop_fan_01",
        itemName = "weed_grow_fan1",
    }
}

--[[
   _____               _       _            _               
  / ____|             | |     | |          | |              
 | (___   ___  ___  __| |   __| | ___  __ _| | ___ _ __ ___ 
  \___ \ / _ \/ _ \/ _` |  / _` |/ _ \/ _` | |/ _ \ '__/ __|
  ____) |  __/  __/ (_| | | (_| |  __/ (_| | |  __/ |  \__ \
 |_____/ \___|\___|\__,_|  \__,_|\___|\__,_|_|\___|_|  |___/
                                                                                                                                                                              
]]--

Config.SeedDealers = {
    enable = true,
    ped = "s_m_y_dealer_01",
    spawnAll = true, -- If false server selected random peds 
    spawnLimit = 3,-- Spawn limit
    seedLimitForOne = 5,
    priceForSeed = 200,
    coords = {
        vector4(329.0356, -2002.5842, 23.2218, 205.6282),
        vector4(50.1945, -1848.5865, 22.8374, 223.1700),
        vector4(-181.2411, -1712.2076, 31.9390, 264.5036),
        vector4(-42.9521, -1528.8904, 31.9576, 319.5918),
        vector4(-233.4903, -1490.8235, 32.9600, 286.4744),
        vector4(-229.7250, -1509.0344, 32.4401, 232.8301),
        vector4(-235.8071, -1641.6636, 34.1047, 38.9890),
        vector4(166.9031, -1705.4020, 29.2917, 252.6714),
        vector4(209.6520, -1762.1027, 29.2844, 324.3927),
        vector4(239.5199, -1768.4326, 28.7557, 129.1521),
        vector4(357.8324, -1873.6779, 25.3061, 184.7087),
        vector4(503.6941, -1968.3429, 24.8359, 122.1129),
        vector4(1264.3229, -1576.4169, 54.5517, 338.3260),
        vector4(1214.3391, -1777.0765, 40.2365, 358.8808),
        vector4(1379.8981, -1554.9193, 56.5997, 54.5953),
    }
}

Last updated