Installation
Follow these steps to install this resource to your server.
Ensure you have all dependencies installed.
Extract the resource.
Configure the resource to your liking. (See Configuration for help)
Add the items to the resource of your choice using the guide below.
Place the extracted resource in your
resources
directory.Import the included
gfg_plants.sql
into your database.Add
ensure gfg_plants
to yourserver.cfg
after the dependencies.Restart your server.
If you are using the default plants and items included in the config, you can check out the inventory folder for images and code snippets for ox and qb.
Adding Seeds
Navigate to
ox_inventory/data/items.lua
Somewhere in your item list, add the entry below for each plant you'd like to have.
Make sure the item name matches the
seedItem
inConfig.Plants
.
You can have whatever name or other item information you'd like, as long as the server export is 'gfg_drugtables.placeTable'
Adding Dead Plants
Navigate to
ox_inventory/data/items.lua
Somewhere in your item list, add the entry below for each dead plant item you'd like to have.
Make sure the item name matches the item name is the related
Config.Plants.'name'.deadPlantItem
You can have whatever name or other item information you'd like.
Last updated