Install Instructions
Last updated
Last updated
Automatic SQL Injection
You'll notice in your lation_weed/install directory multiple SQL files - you do not need to import these manually into your database. Upon starting your server (or just the resource) it will automatically create and setup the necessary database tables for you if it doesn't exist already.
There are only two dependencies (other resources) required to get Advanced Weed Growing installed properly & working: oxmysql & ox_lib. You may already have these installed, but please double check & ensure you have the latest version of each.
Important Notice
It is vitally important to ensure you start each resource in the correct order in your server.cfg. To begin, "oxmysql" should be one of, if not, the first resource started, followed by "ox_lib" - both of these should be started even before your framework (qb-core or es_extended).
Next up, simply navigate to lation_weed/install/items directory (or look below this message) and find your respective inventory resource. Open the text file (or expand the drop-down menu) and copy and paste the items into your inventory resource's item directory.
Where do I add items in my inventory?
If you are unsure exactly where and how to add items into your inventory, just expand the drop down menu for your inventory and at the top will tell you where you need to copy the items too!
-- Add items into ox_inventory/data/items.lua
['ls_plain_jane_seed'] = {
label = 'Plain Jane Seed',
weight = 5,
},
['ls_plain_jane_bud'] = {
label = 'Plain Jane Bud',
weight = 5,
},
['ls_plain_jane_bag'] = {
label = 'Plain Jane Bag',
weight = 10,
},
['ls_plain_jane_joint'] = {
label = 'Plain Jane Joint',
weight = 10,
},
['ls_banana_kush_seed'] = {
label = 'Banana Kush Seed',
weight = 5,
},
['ls_banana_kush_bud'] = {
label = 'Banana Kush Bud',
weight = 5,
},
['ls_banana_kush_bag'] = {
label = 'Banana Kush Bag',
weight = 10,
},
['ls_banana_kush_joint'] = {
label = 'Banana Kush Joint',
weight = 10,
},
['ls_blue_dream_seed'] = {
label = 'Blue Dream Seed',
weight = 5,
},
['ls_blue_dream_bud'] = {
label = 'Blue Dream Bud',
weight = 5,
},
['ls_blue_dream_bag'] = {
label = 'Blue Dream Bag',
weight = 10,
},
['ls_blue_dream_joint'] = {
label = 'Blue Dream Joint',
weight = 10,
},
['ls_purple_haze_seed'] = {
label = 'Purple Haze Seed',
weight = 5,
},
['ls_purple_haze_bud'] = {
label = 'Purple Haze Bud',
weight = 5,
},
['ls_purple_haze_bag'] = {
label = 'Purple Haze Bag',
weight = 10,
},
['ls_purple_haze_joint'] = {
label = 'Purple Haze Joint',
weight = 10,
},
['ls_orange_crush_seed'] = {
label = 'Orange Crush Seed',
weight = 5,
},
['ls_orange_crush_bud'] = {
label = 'Orange Crush Bud',
weight = 5,
},
['ls_orange_crush_bag'] = {
label = 'Orange Crush Bag',
weight = 10,
},
['ls_orange_crush_joint'] = {
label = 'Orange Crush Joint',
weight = 10,
},
['ls_cosmic_kush_seed'] = {
label = 'Cosmic Kush Seed',
weight = 5,
},
['ls_cosmic_kush_bud'] = {
label = 'Cosmic Kush Bud',
weight = 5,
},
['ls_cosmic_kush_bag'] = {
label = 'Cosmic Kush Bag',
weight = 10,
},
['ls_cosmic_kush_joint'] = {
label = 'Cosmic Kush Joint',
weight = 10,
},
['ls_rolling_paper'] = {
label = 'Rolling Paper',
weight = 5,
},
['ls_empty_baggy'] = {
label = 'Empty Baggy',
weight = 5,
},
['ls_access_card'] = {
label = 'Access Card',
weight = 15,
},
['ls_watering_can'] = {
label = 'Watering Can',
weight = 3250,
stack = false,
},
['ls_fertilizer'] = {
label = 'Fertilizer',
weight = 1750,
stack = false,
},
['ls_plant_pot'] = {
label = 'Plant Pot',
weight = 25,
},
['ls_shovel'] = {
label = 'Shovel',
weight = 75,
},
['ls_shears'] = {
label = 'Shears',
weight = 10,
},
['ls_weed_table'] = {
label = 'Weed Table',
weight = 1000,
stack = false
},
-- Add items into [qb]/qb-core/shared/items.lua
ls_plain_jane_seed = { name = 'ls_plain_jane_seed', label = 'Plain Jane Seed', weight = 5, type = 'item', image = 'ls_plain_jane_seed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_plain_jane_bud = { name = 'ls_plain_jane_bud', label = 'Plain Jane Bud', weight = 5, type = 'item', image = 'ls_plain_jane_bud.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_plain_jane_bag = { name = 'ls_plain_jane_bag', label = 'Plain Jane Bag', weight = 10, type = 'item', image = 'ls_plain_jane_bag.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_plain_jane_joint = { name = 'ls_plain_jane_joint', label = 'Plain Jane Joint', weight = 10, type = 'item', image = 'ls_plain_jane_joint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_banana_kush_seed = { name = 'ls_banana_kush_seed', label = 'Banana Kush Seed', weight = 5, type = 'item', image = 'ls_banana_kush_seed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_banana_kush_bud = { name = 'ls_banana_kush_bud', label = 'Banana Kush Bud', weight = 5, type = 'item', image = 'ls_banana_kush_bud.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_banana_kush_bag = { name = 'ls_banana_kush_bag', label = 'Banana Kush Bag', weight = 10, type = 'item', image = 'ls_banana_kush_bag.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_banana_kush_joint = { name = 'ls_banana_kush_joint', label = 'Banana Kush Joint', weight = 10, type = 'item', image = 'ls_banana_kush_joint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_blue_dream_seed = { name = 'ls_blue_dream_seed', label = 'Blue Dream Seed', weight = 5, type = 'item', image = 'ls_blue_dream_seed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_blue_dream_bud = { name = 'ls_blue_dream_bud', label = 'Blue Dream Bud', weight = 5, type = 'item', image = 'ls_blue_dream_bud.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_blue_dream_bag = { name = 'ls_blue_dream_bag', label = 'Blue Dream Bag', weight = 10, type = 'item', image = 'ls_blue_dream_bag.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_blue_dream_joint = { name = 'ls_blue_dream_joint', label = 'Blue Dream Joint', weight = 10, type = 'item', image = 'ls_blue_dream_joint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_purple_haze_seed = { name = 'ls_purple_haze_seed', label = 'Purple Haze Seed', weight = 5, type = 'item', image = 'ls_purple_haze_seed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_purple_haze_bud = { name = 'ls_purple_haze_bud', label = 'Purple Haze Bud', weight = 5, type = 'item', image = 'ls_purple_haze_bud.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_purple_haze_bag = { name = 'ls_purple_haze_bag', label = 'Purple Haze Bag', weight = 10, type = 'item', image = 'ls_purple_haze_bag.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_purple_haze_joint = { name = 'ls_purple_haze_joint', label = 'Purple Haze Joint', weight = 10, type = 'item', image = 'ls_purple_haze_joint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_orange_crush_seed = { name = 'ls_orange_crush_seed', label = 'Orange Crush Seed', weight = 5, type = 'item', image = 'ls_orange_crush_seed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_orange_crush_bud = { name = 'ls_orange_crush_bud', label = 'Orange Crush Bud', weight = 5, type = 'item', image = 'ls_orange_crush_bud.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_orange_crush_bag = { name = 'ls_orange_crush_bag', label = 'Orange Crush Bag', weight = 10, type = 'item', image = 'ls_orange_crush_bag.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_orange_crush_joint = { name = 'ls_orange_crush_joint', label = 'Orange Crush Joint', weight = 10, type = 'item', image = 'ls_orange_crush_joint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_cosmic_kush_seed = { name = 'ls_cosmic_kush_seed', label = 'Cosmic Kush Seed', weight = 5, type = 'item', image = 'ls_cosmic_kush_seed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_cosmic_kush_bud = { name = 'ls_cosmic_kush_bud', label = 'Cosmic Kush Bud', weight = 5, type = 'item', image = 'ls_cosmic_kush_bud.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_cosmic_kush_bag = { name = 'ls_cosmic_kush_bag', label = 'Cosmic Kush Bag', weight = 10, type = 'item', image = 'ls_cosmic_kush_bag.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_cosmic_kush_joint = { name = 'ls_cosmic_kush_joint', label = 'Cosmic Kush Joint', weight = 10, type = 'item', image = 'ls_cosmic_kush_joint.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
ls_rolling_paper = { name = 'ls_rolling_paper', label = 'Rolling Paper', weight = 5, type = 'item', image = 'ls_rolling_paper.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_empty_baggy = { name = 'ls_empty_baggy', label = 'Empty Baggy', weight = 5, type = 'item', image = 'ls_empty_baggy.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_access_card = { name = 'ls_access_card', label = 'Access Card', weight = 15, type = 'item', image = 'ls_access_card.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_watering_can = { name = 'ls_watering_can', label = 'Watering Can', weight = 3250, type = 'item', image = 'ls_watering_can.png', unique = true, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_fertilizer = { name = 'ls_fertilizer', label = 'Fertilizer', weight = 1750, type = 'item', image = 'ls_fertilizer.png', unique = true, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_plant_pot = { name = 'ls_plant_pot', label = 'Plant Pot', weight = 25, type = 'item', image = 'ls_plant_pot.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_shovel = { name = 'ls_shovel', label = 'Shovel', weight = 75, type = 'item', image = 'ls_shovel.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_shears = { name = 'ls_shears', label = 'Shears', weight = 10, type = 'item', image = 'ls_shears.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
ls_weed_table = { name = 'ls_weed_table', label = 'Weed Table', weight = 1000, type = 'item', image = 'ls_weed_table.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = nil },
-- Add items into [qb]/qb-core/shared/items.lua if on QBCore
-- Add items into qs-inventory/shared/items.lua if on ESX
['ls_plain_jane_seed'] = {
['name'] = 'ls_plain_jane_seed',
['label'] = 'Plain Jane Seed',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_plain_jane_seed.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_plain_jane_bud'] = {
['name'] = 'ls_plain_jane_bud',
['label'] = 'Plain Jane Bud',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_plain_jane_bud.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_plain_jane_bag'] = {
['name'] = 'ls_plain_jane_bag',
['label'] = 'Plain Jane Bag',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_plain_jane_bag.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_plain_jane_joint'] = {
['name'] = 'ls_plain_jane_joint',
['label'] = 'Plain Jane Joint',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_plain_jane_joint.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_banana_kush_seed'] = {
['name'] = 'ls_banana_kush_seed',
['label'] = 'Banana Kush Seed',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_banana_kush_seed.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_banana_kush_bud'] = {
['name'] = 'ls_banana_kush_bud',
['label'] = 'Banana Kush Bud',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_banana_kush_bud.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_banana_kush_bag'] = {
['name'] = 'ls_banana_kush_bag',
['label'] = 'Banana Kush Bag',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_banana_kush_bag.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_banana_kush_joint'] = {
['name'] = 'ls_banana_kush_joint',
['label'] = 'Banana Kush Joint',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_banana_kush_joint.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_blue_dream_seed'] = {
['name'] = 'ls_blue_dream_seed',
['label'] = 'Blue Dream Seed',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_blue_dream_seed.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_blue_dream_bud'] = {
['name'] = 'ls_blue_dream_bud',
['label'] = 'Blue Dream Bud',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_blue_dream_bud.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_blue_dream_bag'] = {
['name'] = 'ls_blue_dream_bag',
['label'] = 'Blue Dream Bag',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_blue_dream_bag.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_blue_dream_joint'] = {
['name'] = 'ls_blue_dream_joint',
['label'] = 'Blue Dream Joint',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_blue_dream_joint.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_purple_haze_seed'] = {
['name'] = 'ls_purple_haze_seed',
['label'] = 'Purple Haze Seed',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_purple_haze_seed.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_purple_haze_bud'] = {
['name'] = 'ls_purple_haze_bud',
['label'] = 'Purple Haze Bud',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_purple_haze_bud.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_purple_haze_bag'] = {
['name'] = 'ls_purple_haze_bag',
['label'] = 'Purple Haze Bag',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_purple_haze_bag.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_purple_haze_joint'] = {
['name'] = 'ls_purple_haze_joint',
['label'] = 'Purple Haze Joint',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_purple_haze_joint.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_orange_crush_seed'] = {
['name'] = 'ls_orange_crush_seed',
['label'] = 'Orange Crush Seed',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_orange_crush_seed.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_orange_crush_bud'] = {
['name'] = 'ls_orange_crush_bud',
['label'] = 'Orange Crush Bud',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_orange_crush_bud.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_orange_crush_bag'] = {
['name'] = 'ls_orange_crush_bag',
['label'] = 'Orange Crush Bag',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_orange_crush_bag.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_orange_crush_joint'] = {
['name'] = 'ls_orange_crush_joint',
['label'] = 'Orange Crush Joint',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_orange_crush_joint.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_cosmic_kush_seed'] = {
['name'] = 'ls_cosmic_kush_seed',
['label'] = 'Cosmic Kush Seed',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_cosmic_kush_seed.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_cosmic_kush_bud'] = {
['name'] = 'ls_cosmic_kush_bud',
['label'] = 'Cosmic Kush Bud',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_cosmic_kush_bud.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_cosmic_kush_bag'] = {
['name'] = 'ls_cosmic_kush_bag',
['label'] = 'Cosmic Kush Bag',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_cosmic_kush_bag.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_cosmic_kush_joint'] = {
['name'] = 'ls_cosmic_kush_joint',
['label'] = 'Cosmic Kush Joint',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_cosmic_kush_joint.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_rolling_paper'] = {
['name'] = 'ls_rolling_paper',
['label'] = 'Rolling Paper',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_rolling_paper.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_empty_baggy'] = {
['name'] = 'ls_empty_baggy',
['label'] = 'Empty Baggy',
['weight'] = 5,
['type'] = 'item',
['image'] = 'ls_empty_baggy.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_access_card'] = {
['name'] = 'ls_access_card',
['label'] = 'Access Card',
['weight'] = 15,
['type'] = 'item',
['image'] = 'ls_access_card.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_watering_can'] = {
['name'] = 'ls_watering_can',
['label'] = 'Watering Can',
['weight'] = 3250,
['type'] = 'item',
['image'] = 'ls_watering_can.png',
['unique'] = true,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_fertilizer'] = {
['name'] = 'ls_fertilizer',
['label'] = 'Fertilizer',
['weight'] = 1750,
['type'] = 'item',
['image'] = 'ls_fertilizer.png',
['unique'] = true,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_plant_pot'] = {
['name'] = 'ls_plant_pot',
['label'] = 'Plant Pot',
['weight'] = 25,
['type'] = 'item',
['image'] = 'ls_plant_pot.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_shovel'] = {
['name'] = 'ls_shovel',
['label'] = 'Shovel',
['weight'] = 75,
['type'] = 'item',
['image'] = 'ls_shovel.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_shears'] = {
['name'] = 'ls_shears',
['label'] = 'Shears',
['weight'] = 10,
['type'] = 'item',
['image'] = 'ls_shears.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['ls_weed_table'] = {
['name'] = 'ls_weed_table',
['label'] = 'Weed Table',
['weight'] = 1000,
['type'] = 'item',
['image'] = 'ls_weed_table.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
Very similar to step one, except this time we will be adding the images for each item we added above into our respective inventory directories for images. Navigate to lation_weed/install/images to find all the images or download the ZIP file attached below then follow the instructions
The final step is simple - drag and drop the lation_weed resource into your main resources directory or even a sub-folder. Open your server.cfg and add "ensure lation_weed" to the bottom. As mentioned above, resource start order is vitally important and you must ensure that lation_weed is started after all dependencies (and your framework).
Lastly - save, restart your server & enjoy the most premium weed growing script on FiveM!
If you're already an owner of the Advanced Weed Growing resource, you are in the right place. Expand the drop down menu below to learn how to properly upgrade to version 3.0.0+. If this is your first time installing Advanced Weed Growing, this section is NOT for you!
Hey! Let's get into it. Upgrading to v3 requires no special or scary steps such as changing database tables or losing any existing data or anything like that. There are just a couple things to note to ensure a smooth upgrade to the latest version for your server..
All items have been renamed! The previous names of items like regweed_seed
and bluedream_bud
and purplehaze_joint
have all been changed to a new naming schema: ls_blue_dream_bud
, ls_purple_haze_joint
& so on. There are numerous reasons we are doing this, but it's just important for you to be aware of. You, as the server owner updating this resource, will need to update the item names in the config to the old item names that already exist in your server if you want to maintain re-usability of the existing items.
Metadata! Metadata! Metadata! This is another important choice you must make as a server owner. By default, the script has metadata ENABLED (in Config.Setup). This means a few important things.. first, if you keep metadata enabled when you push this update to your server, players will be UNABLE to roll or bag their existing bud items. This is because, when rolling (or bagging) for example, the script will take the metadata from the bud item and apply it to the joint (or baggy) item. But since metadata did NOT exist before, there will be no metadata on the previously existing bud items in your server, thus rolling or bagging will not work properly. You must make some choices on how to proceed here. Update the script to your server with metadata DISABLED and give your players a chance to roll/bag some of their stashed up bud items (and encourage no further growing temporarily) and then enable metadata later? Or, update the script with metadata ENABLED and therefore the old bud items will not be able to be rolled or bagged (players can plant new plants and those new buds will have metadata and all will work just fine). If you have our drug selling script, you can always add these bud items into the selling script and allow your players to offload their old bud items that way, if you prefer. There are different ways you can approach this, but this was an important note to make!
Players will now have a level & experience! Similar to our other scripts, players will earn XP and level up as they search, harvest & roll or bag weed along their journey. The reason this is important is because by default the config.lua file is setup to RESTRICT usage of certain seeds/items based on the players level! There are 6 total levels by default (you can add or remove levels as you wish), but each strain is behind a level requirement. For example, planting Purple Haze seeds now requires a player be level 4! So, it's important to remember this when working on your new config. You may want to keep the level requirements, or you may want to set everything to simply level 1. The choice is yours of course - just wanted to make a note!
This is less important, but the reason there are 6 levels mentioned above is because there are two new default strains included with the script now. There was previously four, now there is six. If you don't want to include these new strains, then simply remove them from the config and you're set! Or if you were already using your own custom strains, you'll already be updating all that information to reflect your unique server's strains' and all. Just wanted to make mention of the additional strains included in the config by default!
The previous export (exports.lation_weed:StartRolling) has been removed due to the addition of portable weed tables!