Useful links
Preview: Click Here
Buy: Click Here
Documentation Click Here
About
- A farming script with 7 harvest options, Barley, Hops, Cornstalk,Tobacco, Apples, Ham and Milk. Harvests are done through a hoe, and this can be improved by levels to have better rewards. After the harvests, they will have to pack the items in order to sell them. With packaged tobacco you can exchange for cigarettes that will relieve your stress.
Features
- Highly optimized script to always be in 0.00ms.
- Level System
- Various animations and interactions
- Anti-trigger protection.
- Webhooks
- All costumizable
- 7 Farms ( Barley, Cornstalk, Hops, Tobacco , Apple, Milk and Ham )
- Possibility to make cigarettes with tobacco
- Cigarettes will relieve stress
- Some NPCs random on farms to generate rp
- The file was created: c_utils.lua with several possible customizations, notifications, menus, targets.
- All drops can be configured by you, item and quantity.
- Added possibility to add your own level system, with scripts such as: mz_skills or core_skills.
- Support for notifications: QBCore | okok | mythic or other.
- Toggle on/off chance for hoe break.
- Option to enable/disable the minigame.
Config
Config = {}
Config.Settings = {
Core = "qb-core", -- Your core folder name "qb-core"
Target = "qb-target", -- Your target/third eye folder name "qb-target"
Menu = "qb-menu", -- Your menu folder name "qb-menu"
CoreSkils = false, -- If you use core_skills change on server/s_utils with triggers
Notify = "QBCore", -- Change your notify here "QBCore" | "okok" | "mythic"
InvLink = "qb-inventory/html/images/", -- Inventory directory for your images
Webhook = "", -- Your webhook to logs when players selling
BreakHoe = false, -- Here is to enable / disable the possibility for the hoe break
Chance = 10, -- Chance for the hoe break
Minigame = { -- https://github.com/Project-Sloth/ps-ui
EnableMG = false, -- Enable minigame?
NumberOfCircles = 2, -- Number of circles ps-ui
MS = 20, -- Time to complete MS
}
}
-- βββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββ
-- βββββββ¦ββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββ
-- βββββββ¦ββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββ
-- Here is where you can change the blips, names, color or add more blips if you want
Config.Blips = {
[1] = {enable = true, x = 2028.45, y = 4977.48, z = 41.02, sprite = 86, display = 4, scale = 0.8, colour = 5, name = "Farmer"},
[2] = {enable = true, x = 2071.21, y = 4916.05, z = 41.02, sprite = 253, display = 4, scale = 0.8, colour = 5, name = "Barley Farm"},
[3] = {enable = true, x = 2044.33, y = 4943.1, z = 41.09, sprite = 253, display = 4, scale = 0.8, colour = 46, name = "Cornstalk Farm"},
[4] = {enable = true, x = 2005.55, y = 4904.06, z = 42.89, sprite = 253, display = 4, scale = 0.8, colour = 52, name = "Hops Farm"},
[5] = {enable = true, x = 2032.11, y = 4877.65, z = 42.88, sprite = 253, display = 4, scale = 0.8, colour = 56, name = "Tobacco Farm"},
}
-- ββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ
Config.EnablePeds = true -- If true, some NPC's will appear on the farm harvesting ( Just to generate more rp )
Config.Animation = "world_human_gardener_plant" -- Animation for random peds that will spawn
Config.Peds = {
[1] = {type = 4, hash = GetHashKey("a_m_m_farmer_01"), x = 2028.68, y = 4977.97, z = 40.10, h = 180.07},
-- You can add more peds if you want undder this line
}
-- βββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββ
Config.Farms = {
Barley = {
Location = vector3(2071.21, 4916.05, 41.02), -- Location where props will spawn
Prop = "prop_bzzz_gardenpack_barley001", -- Name of the prop [ https://bzzz.tebex.io/package/4887579 ]
SpawnedProps = 10, -- Number of plants that will spawn
Distance = 25, -- Distance of player to render the plants
Collecting = 5000, -- Progressbar time to harvest the plant
Animation = "world_human_gardener_plant", -- Animation when harvesting the plant
},
Cornstalk = {
Location = vector3(2044.33, 4943.1, 41.09), -- Location where props will spawn
Prop = "prop_bzzz_gardenpack_cornstalk001", -- Name of the prop [ https://bzzz.tebex.io/package/4887579 ]
SpawnedProps = 10, -- Number of plants that will spawn
Distance = 25, -- Distance of player to render the plants
Collecting = 5000, -- Progressbar time to harvest the plant
Animation = "world_human_gardener_plant", -- Animation when harvesting the plant
},
Hops = {
Location = vector3(2005.55, 4904.06, 42.89), -- Location where props will spawn
Prop = "prop_bzzz_gardenpack_hops001", -- Name of the prop [ https://bzzz.tebex.io/package/4887579 ]
SpawnedProps = 10, -- Number of plants that will spawn
Distance = 25, -- Distance of player to render the plants
Collecting = 5000, -- Progressbar time to harvest the plant
Animation = "world_human_gardener_plant", -- Animation when harvesting the plant
},
Tobacco = {
Location = vector3(2032.11, 4877.65, 42.88), -- Location where props will spawn
Prop = "prop_bzzz_gardenpack_tabacco001", -- Name of the prop [ https://bzzz.tebex.io/package/4887579 ]
SpawnedProps = 10, -- Number of plants that will spawn
Distance = 25, -- Distance of player to render the plants
Collecting = 5000, -- Progressbar time to harvest the plant
Animation = "world_human_gardener_plant", -- Animation when harvesting the plant
},
Apple = {
Location = vector3(1960.22, 4953.2, 43.44), -- Location where props will spawn
Prop = "bzzz_tree_apple_a", -- Name of the prop [ https://bzzz.tebex.io/package/5422602 ]
SpawnedProps = 10, -- Number of plants that will spawn
Distance = 25, -- Distance of player to render the plants
Collecting = 5000, -- Progressbar time to harvest the plant
animDict = "amb@prop_human_movie_bulb@idle_a", -- Animation when harvesting the plant
anim = "idle_a" -- Animation when harvesting the plant
},
Cow = {
Location = vector3(2155.42, 4964.62, 40.48), -- Location where animals will spawn
Animal = "a_c_cow", -- Name of animal
Collecting = 5000, -- Progressbar time to collecting milk from cow
animDict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", -- Animation when collecting milk from cow
anim = "machinic_loop_mechandplayer", -- Animation when collecting milk from cow
},
Pig = {
Location = vector3(2143.08, 4975.38, 41.49), -- Location where animals will spawn
Animal = "a_c_pig", -- Name of animal
Collecting = 5000, -- Progressbar time to collecting ham from pig
Animation = "machinic_loop_mechandplayer", -- -- Animation when collecting ham from pig
animDict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", -- Animation collecting ham from pig
anim = "machinic_loop_mechandplayer", -- Animation when harvesting the plant
},
}
-- ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.LevelSystem = {
level1 = { min = 1, max = 2 }, -- Hoe level 1
level2 = { min = 2, max = 3 }, -- Hoe level 2
level3 = { min = 3, max = 4 }, -- Hoe level 3
level4 = { min = 4, max = 5 }, -- Hoe level 4
level5 = { min = 5, max = 6 }, -- Hoe level 5
}
Config.Drops = {
Barley = { -- List of items received when harvesting a Barley Plant
"barley",
},
Cornstalk = { -- List of items received when harvesting a Cornstalk Plant
"cornstalk",
},
Hops = { -- List of items received when harvesting A Hopes Plant
"hops",
},
Tobacco = { -- List of items received when harvesting a Tobacco Plant
"tobacco",
},
Apple = { -- List of items received when harvesting Trees
"apple",
},
Cow = { -- List of items received from cows
"milk",
},
Pig = { -- List of items received from pigs
"ham",
},
}
-- ββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββ
Config.Rent = {
Model = "tractor2", -- Model of vehicle being spawned
Trailer = "baletrailer", -- Model of trailer being spawned
Plate = "FARM", -- Plate of the vehicle being spawned
Location = vector4(2028.93, 4970.06, 41.31, 133.69), -- Location to spawn the vehicle
LocationTrailer = vector4(2033.54, 4974.45, 41.09, 131.43), -- Location to spawn the trailer (Spawns on the vehicle)
Delete = vector4(2031.16, 4972.44, 41.14, 310.66), -- Location to return / delete the truck
Keys = "vehiclekeys:client:SetOwner", -- Your trigger to give vehicle keys to players
Fuel = "LegacyFuel", -- Your export trigger for fuel | "ps-fuel" , "cdn-fuel" , "LegacyFuel"
}
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Selling = {
Location = vector3(1724.91, 4702.93, 42.52), -- Location to sell items and tickets
Payment = {
type = "cash", -- "cash" or "bank",
amount = { min = 5, max = 10 } -- Each ticket
},
Items = { -- Thse are the items you can sell
"barley_packaged",
"cornstalk_packaged",
"hops_packaged",
"tobacco_packaged",
"apple_packaged",
"milk_packaged",
"ham_packaged",
},
}
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¦βββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¦βββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Consumables = {
Enable = true, -- Enable for the option to smoke a cigarette?
Tobacco = {
RelieveStress = {
Enable = true, -- Enable so the cigarrete will relieve stress?
Min = 2, -- Min quantity of stress relieved
Max = 4 -- Max quantity of stress relieved
},
AnimOutCar = "smoke", -- Animation when you're smoking outside of a vehicle
AnimInsideCar = "smoke3", -- Animation when you're smoking in a vehicle
}
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Process = {
["barley_packaged"] = { -- Code of the item that will be crafted
hash = "barley_packaged", -- Code of the item that will be crafted
label = "Packaged Barley", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "barley", amount = 5 },
}
},
["cornstalk_packaged"] = { -- Code of the item that will be crafted
hash = "cornstalk_packaged", -- Code of the item that will be crafted
label = "Packaged Cornstalk", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "cornstalk", amount = 5 },
-- You can add more items
}
},
["hops_packaged"] = { -- Code of the item that will be crafted
hash = "hops_packaged", -- Code of the item that will be crafted
label = "Packaged Hops", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "hops", amount = 5 },
-- You can add more items
}
},
["tobacco_packaged"] = { -- Code of the item that will be crafted
hash = "tobacco_packaged", -- Code of the item that will be crafted
label = "Packaged Tobacco", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "tobacco", amount = 5 },
-- You can add more items
}
},
["apple_packaged"] = { -- Code of the item that will be crafted
hash = "apple_packaged", -- Code of the item that will be crafted
label = "Packaged Apple", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "apple", amount = 5 },
-- You can add more items
}
},
["milk_packaged"] = { -- Code of the item that will be crafted
hash = "milk_packaged", -- Code of the item that will be crafted
label = "Packaged Milk", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "milk", amount = 5 },
-- You can add more items
}
},
["ham_packaged"] = { -- Code of the item that will be crafted
hash = "ham_packaged", -- Code of the item that will be crafted
label = "Packaged Ham", -- Name of the item that will be crafted
materials = { -- Necessary materials
[1] = { item = "ham", amount = 5 },
-- You can add more items
}
},
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Upgrades = {
["hoelevel2"] = {
hash = "hoelevel2",
label = "Hoe Level 2",
materials = {
[1] = { item = "hoelevel1", amount = 1 },
[2] = { item = "wood", amount = 10 },
}
},
["hoelevel3"] = {
hash = "hoelevel3",
label = "Hoe Level 3",
materials = {
[1] = { item = "hoelevel2", amount = 1 },
[2] = { item = "wood", amount = 20 },
}
},
["hoelevel4"] = {
hash = "hoelevel4",
label = "Hoe Level 4",
materials = {
[1] = { item = "hoelevel3", amount = 1 },
[2] = { item = "wood", amount = 30 },
}
},
["hoelevel5"] = {
hash = "hoelevel5",
label = "Hoe Level 5",
materials = {
[1] = { item = "hoelevel4", amount = 1 },
[2] = { item = "wood", amount = 40 },
}
},
}
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Animals = {
-- Cows
[1] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2155.42, 4964.62, 40.48, 59.28)},
[2] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2161.32, 4973.34, 40.35, 217.42)},
[3] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2169.44, 4979.0, 40.31, 15.9)},
[4] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2176.51, 4985.78, 41.32, 205.96)},
[5] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2171.82, 4943.2, 41.27, 223.08)},
[6] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2182.53, 4950.77, 41.4, 68.79)},
[7] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2189.05, 4961.36, 41.27, 200.58)},
[8] = {type = 4, hash = GetHashKey(Config.Farms.Cow.Animal), vector4 = vector4(2191.72, 4966.38, 41.27, 236.77)},
-- Pigs
[9] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2143.08, 4975.38, 41.49, 234.75)},
[10] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2150.01, 4983.75, 41.42, 235.8)},
[11] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2156.54, 4990.32, 41.34, 269.47)},
[12] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2163.73, 4997.17, 41.29, 245.74)},
[13] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2151.04, 5012.41, 41.36, 49.45)},
[14] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2143.1, 5005.7, 41.34, 94.0)},
[15] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2136.85, 4998.1, 41.42, 83.59)},
[16] = {type = 4, hash = GetHashKey(Config.Farms.Pig.Animal), vector4 = vector4(2129.89, 4991.68, 41.42, 92.71)},
}
Dependencies:
- qb-target
- qb-menu
- props ( Thanks @BzZzi )
- ps-ui ( If you active the minigame )
- Utilizes the FiveM Tebex Escrow system.
Code is accessible | No (Only configβs) |
---|---|
Subscription-based | No |
Lines (approximately) | ~1000 |
Support | Yes |