axeDocs
StoreDiscordYoutube
  • 🎉Welcome
  • 📖Scripts
    • ⭐Axe Vip
      • Config
      • Installation
      • Exports and commands
        • List of commands
        • Client-side exports
        • Server-side exports
          • getVipMoney
          • addVipMoney
          • removeVipMoney
    • 🔫axeTerritories
      • Config
      • FAQ
    • 🛵axeDeliveries
      • Config
    • 🧑‍🌾axeFarmsCreator
      • Config
    • 🚗axeVehicleShop
      • Config
    • 💼axeJobManagement
      • Config
Powered by GitBook
On this page
  1. Scripts
  2. axeFarmsCreator

Config

Config File

Config = {}

Config.Debug = false -- Prints in console some things that happens in script

Config.Framework = "qb" -- qb , esx
Config.Inventory = "ox" -- "ox" for ox_inventory or "qs" for quasar-inventory
Config.Progress = "ox-circle" -- ox-normal , ox-circle
Config.OxCirclePosition = "bottom" -- Just change this if Config.Progress = 'ox-circle'

Config.Farms = {
	{
		infinite = true, -- When finish farming if start again automatically
		canFarmArmed = false, -- If player can farm with weapon in hand
		labels = {
			farm = "~p~[E]~w~ Farm", -- Text to display in location to farm
			progress = "Farming Weed...", -- Text to display in progressbar when farming
		},
		animation = {
			dict = "amb@prop_human_bum_bin@idle_a", -- animation dictionary when farming
			clip = "idle_a", -- animation when farming
			prop = {
				model = `prop_cs_scissors`,
				position = { x = 0.1, y = 0.02, z = 0.02 },
				rotation = { x = -100.0, y = 0.0, z = 0.0 },
			},
		},
		progressBar = {
			duration = 5000, -- progressbar duration when farming in miliseconds / 5000 = 5 seconds
		},
		locations = { -- locations of the farm
			vec3(2205.97, 5574.98, 53.76),
			vec3(2199.3, 5570.71, 53.84),
		},
		prop = `prop_weed_02`, -- props to display in locations or false if dont want any prop
		distance = 5, -- Distance required to farm and show marker
		requiredItems = { -- required items to farm and if want to remove in the farm finish / {} to dont require any items to farm
			{},
		},
		rewardItems = { -- items to give when finish farming
			{ name = "weed_white-widow_seed", amount = 1 },
		},
		allowedJobs = { "mechanic" }, -- allowed jobs to farm {} to allow everyone | If QBCore it validates job or gang with this name
	},
	{
		infinite = true,
		canFarmArmed = false, -- If player can farm with weapon in hand
		labels = {
			farm = "~p~[E]~w~ Process",
			progress = "Processing weed...",
		},
		animation = {
			dict = "amb@prop_human_bum_bin@idle_a",
			clip = "idle_a",
		},
		progressBar = {
			duration = 5000,
		},
		locations = {
			vec3(2215.02, 5594.77, 53.92),
		},
		prop = `prop_astro_table_02`,
		distance = 5,
		requiredItems = {
			{ name = "weed_white-widow_seed", amount = 1, remove = true },
		},
		rewardItems = { { name = "weed_white-widow", amount = 1 } },
		allowedJobs = {},
	},
	{
		infinite = true,
		canFarmArmed = false, -- If player can farm with weapon in hand
		labels = {
			farm = "~p~[E]~w~ Sell",
			progress = "Selling weed...",
		},
		animation = {
			dict = "amb@prop_human_bum_bin@idle_a",
			clip = "idle_a",
		},
		progressBar = {
			duration = 5000,
		},
		locations = {
			vec3(2208.48, 5593.83, 53.82),
		},
		prop = false,
		distance = 5,
		requiredItems = {
			{ name = "weed_white-widow", amount = 1, remove = true },
		},
		rewardItems = { { name = "money", amount = 100 } },
		allowedJobs = {},
	},
}

Config.Locales = {
	["DONT_HAVE_REQUIRED_ITEMS"] = "You dont have the required items.",
	["DONT_HAVE_PERMISSION"] = "You dont have permission.",
	["YOU_CANT_FARM_ARMED"] = "You cant farm armed.",
}

--- Notify function
--- @param message string
--- @param type "error" | "info" | "success" | "warning"
function Notify(message, type)
	lib.notify({
		description = message,
		type = type,
	})
end
PreviousaxeFarmsCreatorNextaxeVehicleShop

Last updated 2 months ago

📖
🧑‍🌾