We provide various open source functions into our Advanced Weed Growing resource that enables you to add further customization and/or add third-party resource integrations such as XP systems.
SeedsFound() - Empty function that's triggered when a player finds seeds.
-- Empty function thats triggered when a player finds a seed--- @param source number Player ID--- @param item string Item name--- @param amount number Quantity of items receivedSeedsFound=function(source,item,amount)end
SeedPlanted() - Empty function that's triggered when a player plants a seed.
-- Empty function thats triggered when a player plants a seed--- @param source number Player ID--- @param data table id, x, y, z, strain, hunger, thirst, quality, growth, props, stage, bucket, ownerSeedPlanted=function(source,data)end
PlantFed() - Empty function that's triggered when a player fertilizes a plant.
-- Empty function thats triggered when a player fertilizes a plant--- @param source number Player IDPlantFed=function(source)end
PlantWatered() - Empty function that's triggered when a player waters a plant.
-- Empty function thats triggered when a player waters a plant--- @param source number PlayerIDPlantWatered=function(source)end
PlantHarvested() - Empty function that's triggered when a player harvests a plant.
-- Empty function thats triggered when a player harvests a plant--- @param source number Player ID--- @param item string Item name--- @param amount number Quantity of items receivedPlantHarvested=function(source,item,amount)end
JointRolled() - Empty function that's triggered when a player rolls joints.
-- Empty function thats triggered when a player rolls joints--- @param source number Player ID--- @param item string Item name--- @param amount number Quantity of items receivedJointsRolled=function(source,item,amount)end
JointSmoked() - Empty function that's triggered when a player smokes a joint.
-- Empty function thats triggered when a player smokes a joint--- @param source number Player ID--- @param item string Item nameJointSmoked=function(source,item)end
ItemPurchased() - Empty function that's triggered when a player buys from supply shop.
-- Empty function thats triggered when a player buys from supply shop--- @param source number Player ID--- @param item string Item name--- @param quantity number Quantity of item purchasedItemPurchased=function(source,item,quantity)end
All the above functions can be found in lation_weed/server/functions.lua and gives you virtually limitless options for custom additions, third-party resource integrations & more!
Warning
It is important to note: any & all edits made in these various functions are your responsibility. We do not provide support for, nor assist with, adding or editing custom functionality into our resources.