Config

You can check out default config

cfg.Prefix             = QBCore
cfg.TriggerPrefix      = "QBCore"
cfg.ExportPrefix       = "qb-core"

cfg.Language           = 'en'               -- Language to load from locales

cfg.Courier_Cooldown   = {min = 2, max = 5}
cfg.Keys_Limit	       = 5
cfg.Temperature_Unit   = "Celsius"          -- "Celsius" or "Fahrenheit"
cfg.sale_ped_model     = "S_M_Y_DevinSec_01"
cfg.sell_lab_tax       = 25

cfg.Time               = {					-- Actually configured for "GMT +1"
    ["Zone"]           = "plus", 			-- "plus" or "minus"
    ["Zone_Count"]     = 1,
    ["Format"]         = 24 				-- 24 or 12 (PM/AM)
}

cfg.Bill 	       = {
	pricePerWattage = 5,
	daysToPay = 7
}

cfg.Air_Conditioning   = "prop_aircon_s_03a" 

cfg.Delivery_Packages  = {
	"prop_mp_drug_package", "prop_mp_drug_pack_blue", "prop_mp_drug_pack_red"
}

cfg.Pot 	       = {
	"weed_pot_empty", "sf_prop_sf_weed_01_small_01a", "sf_prop_sf_weed_med_01a", "sf_prop_sf_weed_lrg_01a"
}

cfg.Seed 	       = {
	temperature_tolerance = {["Celsius"] = 1.5, ["Fahrenheit"] = 10.0},
	temperature_multiplier = 0.5,
	max_growth_multiplier = 1.25,

	["weed_white_widow_seed"] = {
		label = "White Widow",
		drug = "weed_white_widow",
		price = 2000,
		rep = 0,
		increase_rep = 1,
		description = "White Widow is a balanced hybrid strain of Cannabis indica and Cannabis sativa. White Widow is a cross between a Brazilian sativa strain and a resin-heavy South Indian indica.",
		temperature = {["Celsius"] = 18, ["Fahrenheit"] = 64.4},
		increase_progress = 0.0005,  -- ~55 hours (0-100%)
		decrease_hydration = 0.0015, -- ~19 hours (100-0%)
		cut_weed = {
			[1] = nil,
			[2] = {min = 50, max = 75},
			[3] = {min = 100, max = 150},
			[4] = {min = 200, max = 400}
		}
	},
	["weed_og_kush_seed"] = {
		label = "OG Kush",
		drug = "weed_og_kush",
		price = 4000,
		rep = 50,
		increase_rep = 1,
		description = "OG Kush is a hybrid marijuana strain with a distinctive earthy, pine, woody aroma. It is well-known for its relaxing and euphoric effects.",
		temperature = {["Celsius"] = 20, ["Fahrenheit"] = 68},
		increase_progress = 0.0005,  -- ~55 hours (0-100%)
		decrease_hydration = 0.0015, -- ~19 hours (100-0%)
		cut_weed = {
			[1] = nil,
			[2] = {min = 50, max = 75},
			[3] = {min = 100, max = 150},
			[4] = {min = 200, max = 400}
		}
	},
	["weed_purple_haze_seed"] = {
		label = "Purple Haze",
		drug = "weed_purple_haze",
		price = 6000,
		rep = 100,
		increase_rep = 1,
		description = "Purple Haze is a sativa dominant hybrid (85% sativa/15% indica) strain that is a potent cross between the rare yet popular Purple Thai X Haze strains.",
		temperature = {["Celsius"] = 22, ["Fahrenheit"] = 71.6},
		increase_progress = 0.0005,  -- ~55 hours (0-100%)
		decrease_hydration = 0.0015, -- ~19 hours (100-0%)
		cut_weed = {
			[1] = nil,
			[2] = {min = 50, max = 75},
			[3] = {min = 100, max = 150},
			[4] = {min = 200, max = 400}
		}
	},
	["weed_gorilla_glue_seed"] = {
		label = "Gorilla Glue",
		drug = "weed_gorilla_glue",
		price = 10000,
		rep = 150,
		increase_rep = 1,
		description = "Gorilla Glue is a potent hybrid strain that delivers heavy-handed euphoria and relaxation, leaving you feeling “glued” to the couch",
		temperature = {["Celsius"] = 24, ["Fahrenheit"] = 75.2},
		increase_progress = 0.0005,  -- ~55 hours (0-100%)
		decrease_hydration = 0.0015, -- ~19 hours (100-0%)
		cut_weed = {
			[1] = nil,
			[2] = {min = 50, max = 75},
			[3] = {min = 100, max = 150},
			[4] = {min = 200, max = 400}
		}
	}
}

cfg.Parts 	      = {
	["ventilation"] = {usageTime = 24, increase_progress = 0.000025, mode = {["Economy"] = {Power = 20, RPM = 800}, ["Balanced"] = {Power = 40, RPM = 1000}, ["Performance"] = {Power = 60, RPM = 1200}}},
	["ventilation_plus"] = {usageTime = 36, increase_progress = 0.00005, mode = {["Economy"] = {Power = 10, RPM = 1200}, ["Balanced"] = {Power = 20, RPM = 1400}, ["Performance"] = {Power = 30, RPM = 1600}}},

	["heater"] = {usageTime = 36, increase_progress = 0.000025, mode = {["Off"] = {Power = 0, Temperature = {["Celsius"] = 5, ["Fahrenheit"] = 41.0}}, ["Economy"] = {Power = 50, Temperature = {["Celsius"] = 20, ["Fahrenheit"] = 68.0}}, ["Balanced"] = {Power = 70, Temperature = {["Celsius"] = 22, ["Fahrenheit"] = 71.6}}, ["Performance"] = {Power = 100, Temperature = {["Celsius"] = 24, ["Fahrenheit"] = 75.2}}}},
	["heater_plus"] = {usageTime = 48, increase_progress = 0.00005, mode = {["Off"] = {Power = 0, Temperature = {["Celsius"] = 5, ["Fahrenheit"] = 41.0}}, ["Economy"] = {Power = 25, Temperature = {["Celsius"] = 20, ["Fahrenheit"] = 68.0}}, ["Balanced"] = {Power = 35, Temperature = {["Celsius"] = 22, ["Fahrenheit"] = 71.6}}, ["Performance"] = {Power = 50, Temperature = {["Celsius"] = 24, ["Fahrenheit"] = 75.2}}}},

	["pot"] = {usage = 2},
	["pot_plus"] = {usage = 5},

	["water_tank"] = {capacity = 200.0},

	["water_bottle_big"] = {capacity = 10.0},

	["watering_can"] = {capacity = 3.0}
}

cfg.Laptop = {
	apps = {
		["parts-shop"] = {
			{
				category = {name = "House", img = "apps/parts-shop/house.png"},
				items = {
					{name = "ventilation", label = "Ventilation Kit", price = 1999, img = "apps/parts-shop/ventilation_item.png", usageTime = cfg.Parts["ventilation"].usageTime},
					{name = "ventilation_plus", label = "Ventilation Kit Plus", price = 3999, img = "apps/parts-shop/ventilation_plus_item.png", usageTime = cfg.Parts["ventilation_plus"].usageTime},
					{name = "heater", label = "Heater", price = 2999, img = "apps/parts-shop/heater_item.png", usageTime = cfg.Parts["heater"].usageTime},
					{name = "heater_plus", label = "Heater Plus", price = 5999, img = "apps/parts-shop/heater_plus_item.png", usageTime = cfg.Parts["heater_plus"].usageTime},
				}
			},
			{ 
				category = {name = "Garden", img = "apps/parts-shop/garden.png"},
				items = {
					{name = "pot", label = "Pot", price = 89, img = "apps/parts-shop/pot_item.png", usage = cfg.Parts["pot"].usage},
					{name = "pot_plus", label = "Pot Plus", price = 199, img = "apps/parts-shop/pot_plus_item.png", usage = cfg.Parts["pot_plus"].usage},
					{name = "watering_can", label = "Watering Can", price = 299, img = "apps/parts-shop/watering_can_item.png" , capacity = cfg.Parts["watering_can"].capacity},
					{name = "water_bottle_big", label = "Water Bottle Big", price = 99, img = "apps/parts-shop/water_bottle_big_item.png", capacity = cfg.Parts["water_bottle_big"].capacity}
				}
			}
		}
	}
}

function progressBar(data)
	-- data / title, duration, icon, cannotMove, cancelable
	-- return true or false

	-- inside-ui
	-- return exports["inside-ui"]:ProgressBar(data.title, data.duration, data.icon, data.cannotMove, data.cancelable)

	local result
	cfg.Prefix.Functions.Progressbar("inside-weed", data.title, data.duration, false, data.cancelable, {
		disableMovement = data.cannotMove,
		disableCombat = data.cannotMove,
	}, {}, {}, {}, function() -- Done
		result = true
	end, function() -- Cancel
		result = false
	end)

	return result
end

function clientNotify(txt, duration, style)
	-- inside-ui
	-- exports["inside-ui"]:Notify(false, txt, duration, type)

	if style == "info" then style = "primary" end

	TriggerEvent('QBCore:Notify', txt, style, duration)
end

function serverNotify(id, txt, duration, style)
	-- inside-ui
	-- TriggerClientEvent("inside-ui:Notify", id, false, txt, duration, type)

	if style == "info" then style = "primary" end

	TriggerClientEvent('QBCore:Notify', id, txt, style, duration)
end

Server Configuration

Last updated