Configuration
1. Framework and Target
config.framework = {
qb = false, -- set to true if you are using qbcore
esx = true, -- set to true if you are using esx
custom = false, -- set to true if you are using a custom framework
}2. Teleports (Optional)
This option allows you to set up an entrance and exit to the weedfarm interior
config.teleports = {
enabled = true, -- if false, disables teleports
target = false, -- if false, uses textUI ('Press [E]')
enter = vector4(116.0, -2689.0, 6.0, 270.27), -- enter teleport coords
exit = vector4(1066.13, -3183.43, -39.16, 94.22), -- exit teleport coords
}3. Notifications
Here you can customize notifications to your liking
You can either edit the
ox_libexample below, or replace it with the event/export of your preffered notifications resource
4. Plant Options
Water Can Amount: How much water a water can item holds
Fertilizer Spray Amount: How much fertilizer a spray bottle holds
Harvest Amount: The minimum and maxium amounts of wet buds players can receive from harvesting a fully grown plant
amount is random number between min and max
Harvest Seed:
When true, there is a chance players will receive another seed when harvesting a plant
5. Weed Shop
Configure prices of weed shop items
You MUST use the shop for Water Can and Fertilizer Spray items as they require metadata that is added to the items when purchased from the store
6. Strains
Here you can customize your strain options
Each strain listed below is included with the resource along with custom items and props for each strain.
If you would like to add or remove strains you are welcome to do so
Each strain must include the same format as the ones below with items and props listed for the following options:
seed
wet bud
dry bud
bag
medium prop
large prop
wet bud prop
Price and Joint are optional
7. Growth
Max XP: Amount of XP required for a plant to be harvested
XP amount is stored in database
Health and Fertilization
Here you can adjust how quickly or slowly plants grow
Every minute, the plants' XP are increased by the specified amount depending on what percentage its health and fertilization are at
Health = Water Can
Fertilization = Fertilizer Spray (bottle)
8. Drying
Fan Model:
Model of the fans that are spawned
Max Dry Amount:
If set to false, players can dry any amount that they have in their inventory
DO NOT SET TO TRUE
Alternatively, you can set this to any # to limit the amount they can dry at once
Dry Time:
How long it takes to take to dry wet bud (in seconds) per wet bud
example: (to dry 10 wet but takes 10 seconds with DryTime set to 1000)
Receive Amount:
How many dry buds the player will receive (per wet bud) after drying is completed
Fan Locations:
a fan prop (config.FanModel) is spawn at each set of coords
you may add or remove as many fans as you'd like
each fan becomes targetable and allows players to dry their wet buds
coords must be Vector4 format
9. Bagging and Sorting
Require bags:
whether or not a player will need to have empty bag item to bag weed
Require Scale:
whether or not a player will need to have a scale item to bag weed
Empty Bag Item:
name of your servers Empty Bag item (only used id RequireBags is set to
true)Players will be required to have the same amount of empty bags as the number of weed bags they are trying to make (making 50 bags of weed will require 50 empty bags)
Max Sort Amount:
Limit how many bags a player can make at once
If false, players can bag as many as they want (limited to how many dry buds they have)
DO NOT SET TO TRUE
Alternatively, you can set this to a number that sets the max amount of bags players can make at once
Buds Per Bag:
How many dry buds make 1 bag
example: If a player has 20 dry buds, at 5 buds per bag they can make 4 weed bags of that strain)
Last updated