🍃Picking
Adding more PICKING LOCATIONS
Adding more
picking locationsis very simple via theconfig.luafile in theConfig.PickingsectionTo add other shop target zones simply add your
ShopNameas theykeyand then customize thevaluesto suit your server needs inConfig.PickingThe target event requires args being passed which is the
ShopNameand thestrain
Config.Picking = {
['My Cool Shop'] = {
{
Name = "my_cool_strain_target",
Location = vector3(378.14, -813.32, 29.0),
Radius = 0.75, Distance = 2.0,
Icon = 'fa-solid fa-cannabis', Label = 'Pick My Cool New Strain',
job = Config.CoreSettings.Jobs['My Cool Shop'].name,
strain = 'my_cool_new_strain', -- ✅ Pass strain
args = { shopName = "My Cool Shop", }, -- ✅ Pass shopName
},
},
}To add more strains you will need to modify the following event in
server/funcs.lualusty94_weedshops:server:PickCropWhatever you name your strain in the config file, you must ensure it matches here in the
strainItemstableYou must also ensure the item that the new strain gives must be in your items.lua file
local strainItems = {
tropical = "tropicalpunch_crop",
sherb = "sunsetsherbert_crop",
lemon = "lemontree_crop",
purple = "purplepunch_crop",
kush = "kushmintz_crop",
apple = "applefritter_crop",
mimosa = "mimosa_crop",
cereal = "cerealmilk_crop",
gelato = "gelato45_crop",
biscotti = "biscotti_crop",
wedding = "weddingcake_crop",
strawbruntz = "strawberryruntz_crop",
gorilla = "gorillaglue_crop",
my_cool_new_strain = "my_cool_new_item_name",
}Last updated