Price
$12.00A script by Vibrant_Resources
Price
$12.00Showcase Video
Purchase Resource £12 + tax
What is this resource?
vib-beefarm allows server owners and developers to place zones around the map where players can place down bee hives which can produce honey at varying speeds, all whilst needing to stop other players trying to destroy them with fire!
Features:
The Config can be viewed below
Config = {}
--------------
--Core Stuff--
--------------
Config.Inventory = {
OX = true,
QB = false,
}
Config.DestroyOnStop = false -- All hives deleted permanently on resource stop
Config.Debug = false -- Turn on debug for all target options
Config.BeeHive = 'bzzz_props_beehive_box_001' -- Prop used for beehives
--------------
--Blip Stuff--
--------------
Config.Blip = {
Sprite = 674,
Scale = 0.8,
Colour = 6,
Name = "Beefarm",
}
--------------
--Fire Stuff--
--------------
Config.FireTime = 5000 -- How long before the fire ends in ms [1000 = 1 second]
Config.RagdollChance = 50 -- Number between (1, 100)
Config.LengthofRagdoll = 2500 -- How long the ragdoll effect should last
-------------
--Job Stuff--
-------------
Config.RequiresJob = false -- Whether the player requires a job to interact with and place hives
Config.BeeJob = "beefarmer" -- Job name required to interact with and place Hives
Config.AddJobsFromConfig = false -- [true] = No need to add job within [jobs.lua]/[false] = Have to add job to your [jobs.lua]
Config.AddSharedJobs = { -- The job added if [Config.AddJobsFromConfig = true]
['beefarmer'] = {
label = 'Apiarist',
defaultDuty = true,
offDutyPay = false,
grades = {
[0] = {
name = 'Bee Keeper',
payment = 50
},
},
},
}
---------------------
--Progressbar Times--
---------------------
Config.AddQueen = 5000 -- How long it takes to add a queen
Config.TakeHoney = 5000 -- How long it takes to collect honey
Config.DestroyHive = 2000 -- How long is takes to destroy a hive
Config.PlaceHive = 3000 -- How long it takes to construct a hive
Config.IncreasePopulation = 5000 -- How long it takes to increase population
Config.SmokeHive = 5000 -- How long it takes to smoke out a hive
Config.AddPesticide = 5000 -- How long it takes to add pesticide
------------------
--Required Items--
------------------
Config.HiveItem = "bee_hive" -- Item required to place a new hive
Config.QueenItem = "queen_bee" -- Item required to add a queen to a hive
Config.JarItem = "empty_jar" -- Item required to harvest honey from a hive
Config.SmokeItem = "bee_smoke" -- Item required to smoke out hives
Config.PesticideItem = "bee_pesticide" -- Item required to add pesticide to a hive
Config.PopulationIncreaseItem = "box_of_bees" -- Item required to increase a hives population
Config.StartFireItem = "jerry_can" -- Item required to destroy a hive
Config.BeeShop = {
ShopPed = "a_m_m_farmer_01",
ShopPedLocation = vector4(-1175.72, -1571.12, 3.35, 126.28),
DisplayDisabledHoneysInShop = true, -- Display all possible honeys in the shop sell list, but disable the ones the player doesn't have
ItemsToBuy = { -- item/price
queen_bee = 100,
bee_hive = 100,
empty_jar = 100,
box_of_bees = 100,
bee_smoke = 100,
bee_pesticide = 100,
},
}
------------------
--Timer Controls--
------------------
Config.HiveWaitTimeInSeconds = 750 -- How long it takes until it gains the next amount of [Config.PercentGain] in ms (We keep this low to stop the honey production)
-- When a hive gets destroyed
Config.PercentGain = 0.50 -- How much percent it gains per [Config.HiveWaitTimeInSeconds] (Lower = slow production rate. Better for economy servers)
-- We use these numbers above as they make each hives full production time take rouhgly 25 minutes form start to finish
----------
--Bushes--
----------
Config.Bushes = {
BushCooldown = 1, -- Cooldown between searhcing bushes (In minutes)
BushModel = "prop_cs_plant_01", -- Model used for bushes
BushRewards = {
RareChance = 10, -- Percent chance to find a [RareReward]
BeeBoxBeesRequired = 5, -- Amount of [BasicReward.item] needed to make a [box_of_bees]
BasicReward = {
item = "worker_bee", -- Item given
amount = math.random(1, 5), -- Amount given
},
RareReward = {
item = "queen_bee",
amount = 1,
},
},
BushLocations = { -- Locations of every bush that spawn
vector3(204.23, 6502.24, 31.49),
vector3(203.08, 6505.72, 31.49),
vector3(205.99, 6510.85, 31.48),
}
}
----------------------
--Polyzone Locations--
----------------------
Config.HiveZones = {
{
name = "standard honey", -- Zone names must be unique
blipLocation = vector3(268.1, 6516.51, 30.56),
reward = {item = "standard_honey", amount = math.random(1, 10), salesprice = 10},
debug = Config.Debug,
points = { -- Border points of you zones [DO NOT OVERLAP ZONES]
vec3(294.0, 6516.0, 30.0),
vec3(290.0, 6498.0, 30.0),
vec3(184.0, 6491.0, 30.0),
vec3(169.0, 6493.0, 30.0),
vec3(170.0, 6497.0, 30.0),
vec3(179.0, 6505.0, 30.0),
vec3(195.0, 6516.0, 30.0),
vec3(217.0, 6526.0, 30.0),
vec3(239.0, 6533.0, 30.0),
vec3(269.0, 6538.0, 30.0),
vec3(290.0, 6536.0, 30.0),
},
},
}
Dependencies:
All files except the config.lua & locales.json are escrowed.
|-------------------------------------|----------------------------|
| Code is accessible | Only config.lua & locales.json |
| Subscription-based | No |
| Lines (approximately) | 1300 |
| Support | Yes, through Discord |
See what others are saying about this script.
Share your experience and help others.