Package Description
What is this?
This script is the last plant script you'll ever need, it has all the premium features whilst maintaining high performance!
I've made a similar resource in the past and with a few more months of experience as well as suggestions I have now made this resource. It has everything you could imagine, which is all explained below.
After buying this resource, you can add and configure new plants, all of the values for timers, how much of something is needed, plant models, rewards based off of quality etc. If you want to know exactly how it works, view the config image or read below.
In order to make this resource more interesting, light values have been added. These light values will be based off of the time of day and interior. In order to match the plant's desired light values you can place down lights. But be careful, both too little and too much light will halt the growth process.
Another interesting feature is the quality. By watering and fertilizing your plants your quality will stay high, but as soon as your water or nutrition levels either goes above or below the plant's desired settings, you will lose quality. The settings for all of the values and timers can of course be changed. But what makes quality interesting is the output of the harvested plant. The output will be based off of the plant's quality. The config allows for you to change both item and item amount for each quality state, with ease.
In order to ensure this script fits all of your needs, you can change the values to whatever you want. This means you can plant trees, if that's what you want. Or if you want to keep it illegal, plant marijuana, coke, opium or whatever plant based drug you desire.
The last point I want to mention is that the plants are saved in the database. This was a huge request in order to extend growth timers.
Other small features worth mentioning are restricted zones, auto remove plants after a set time to optimize performance, distance between plants, thread wait timers can be changed and ability to translate everything.
Note
Explanations for how to change these values above are all in the config.lua file. If you have any problems, feel free to ask.
TLDR - Script features:
Saves to the database
Add any plant you want
Needs caretaking (Light, water, nutrition)
Different rewards depending on how you handle the plant
Extensive config to change all values you could think of
Completely synced for everyone
NUI for plant handling
Stress tested and optimized
Videos / showcase:
Config: Click To View
Showcase: Click To View NOTE! Video is just a quick showcase and in order to understand everything, I recommend reading above. It would definitely make a 15+ minute video if I would explain everything and I wanted to keep it short.
Dependencies
- zyke_lib
- QBCore/ESX
- OxMySQL/MySQL
Locked files:
All files except for config.lua and files to fetch your framework will be locked. NUI is technically unlocked but was written using React meaning it's compiled code.