Page cover

🐝Beefarm

Documentation relating to "vib-beefarm"

Installation

  1. Head over to the Beefarm Dependencies to see what dependencies are required for each framework

  2. Download your file from Key Master and extract the contents into your desired location

  3. If you don't extract it into your standalone folder, remember to add "ensure vib-beefarm" to your server.cfg

  4. Import the provided .sql file

  5. Add all the items in the README.md and the images from the images folder

  6. Preset props can be found here: https://forum.cfx.re/t/props-beehive/5102500 but can also be changed in the Config.lua

Config

Config = {}

--------------
--Core Stuff--
--------------

Config.DestroyOnStop = false -- All hives deleted permanently on resource stop
Config.Debug = true -- Turn on debug for all target options
Config.BeeHive = 'bzzz_props_beehive_box_001' -- Prop used for beehives

--------------
--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.BeeJob = "beefarmer" -- Job name required to interact with and place Hives
Config.AddJobsFromConfig = true -- [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 = {
        queen_bee = 100,
        bee_hive = 100,
        empty_jar = 100,
        box_of_bees = 100,
        bee_smoke = 100,
        bee_pesticide = 100,
    },
}

------------------
--Timer Controls--
------------------

Config.HiveWaitTimeInSeconds = 5 -- How long it takes until it gains the next amount of [Config.PercentGain]
Config.PercentGain = 1.6 -- How much percent it gains per [Config.HiveWaitTimeInSeconds]

----------------------
--Polyzone Locations--
----------------------

Config.HiveZones = {
    {
        name = "standard honey", -- Zone names must be unique
        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),
        },
    },
    {
        name = "manuka honey",
        reward = {item = "manuka_honey", amount = math.random(1, 10), salesprice = math.random(1, 1)},
        debug = Config.Debug,
        points = {
            vec3(39.6, 4313.5, 43.2),
            vec3(22.7, 4319.0, 43.2),
            vec3(10.8, 4328.6, 42.8),
            vec3(2.86, 4346.0, 40.3),
            vec3(12.0, 4363.5, 41.0),
            vec3(36.1, 4383.5, 41.3),
            vec3(62.8, 4346.4, 40.7),
            vec3(52.0, 4324.7, 44.7),
            vec3(41.3, 4314.9, 43.6),
        }
    },
    {
        name = "acacia honey",
        reward = {item = "acacia_honey", amount = math.random(1, 10), salesprice = math.random(2, 2)},
        debug = Config.Debug,
        points = {
            vec3(1921.6, 4946.7, 45.0),
            vec3(1959.6, 5018.0, 45.2),
            vec3(1991.8, 4998.2, 45.4),
            vec3(1987.1, 4992.9, 45.6),
            vec3(1994.5, 4985.3, 45.6),
            vec3(1986.0, 4977.5, 45.9),
            vec3(2005.7, 4956.3, 45.7),
            vec3(1970.1, 4921.0, 45.0),
            vec3(1955.2, 4917.5, 45.3),
        }
    },
    {
        name = "buckwheat honey",
        reward = {item = "buckwheat_honey", amount = math.random(1, 10), salesprice = math.random(3, 3)},
        debug = Config.Debug,
        points = {
            vec3(1596.0, 2152.0, 80.0),
            vec3(1560.0, 2154.0, 80.0),
            vec3(1553.0, 2148.0, 80.0),
            vec3(1549.0, 2147.0, 80.0),
            vec3(1544.0, 2149.0, 80.0),
            vec3(1535.0, 2148.0, 80.0),
            vec3(1527.0, 2143.0, 80.0),
            vec3(1528.0, 2135.0, 80.0),
            vec3(1531.0, 2128.0, 80.0),
            vec3(1596.0, 2130.0, 80.0),
        }
    },
    {
        name = "eucalyptus honey",
        reward = {item = "eucalyptus_honey", amount = math.random(1, 10), salesprice = math.random(4, 4)},
        debug = Config.Debug,
        points = {
            vec3(2760.5, 4789.1, 45.3),
            vec3(2820.3, 4829.1, 46.5),
            vec3(2846.3, 4773.7, 49.0),
            vec3(2840.3, 4736.4, 47.8),
            vec3(2796.5, 4696.2, 45.9),
            vec3(2781.9, 4698.8, 45.8),
            vec3(2772.5, 4749.1, 45.9),
        }
    },
    {
        name = "alfalfa honey",
        reward = {item = "alfalfa_honey", amount = math.random(1, 10), salesprice = math.random(5, 5)},
        debug = Config.Debug,
        points = {
            vec3(318.0, 6505.0, 29.0),
            vec3(319.0, 6539.0, 29.0),
            vec3(382.0, 6538.0, 29.0),
            vec3(383.0, 6504.0, 29.0),
        }
    }
}

Last updated