m-Scripts
  • m-Scripts Documentation
  • QBCore
    • Jobs
      • 🚗[QB] TunerJob
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🍞[QB] BeanMachine
        • 🛠️Installation
        • 🗒️Config
      • 🍔[QB] Burgershot
        • 🛠️Installation
        • 🗒️Config
      • 🍈[QB] CoolBeans
        • 🛠️Installation
        • 🗒️Config
      • 🚚[QB] Deliveries
        • 🛠️Installation
        • 📃Config
          • 📃config_functions
      • 🍎[QB] Farming
        • 🛠️Installation
        • 🗒️Config
      • 🐟[QB] Fishing
        • 🛠️Installation
        • 🗒️Config
          • 📄config_diving
          • 📄config_fishingnet
          • 📄config_fishingrod
          • 📄config_functions
          • 📄config_language
          • 📄config_seashells
          • 📄config_tournament
          • 📄config_upgrades
      • 🚛[QB] Garbage
        • 🛠️Installation
        • 🗒️Config
      • 🗝️[QB] GoldRush
        • 🛠️Installation
        • 🗒️Config
      • ⛰️[QB] Hunting
        • 🛠️Installation
        • 🗒️Config
      • 🪵[QB] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[QB] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🛢️[QB] Oil Factory
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • ☕[QB] Pond Coffee
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🚚[QB] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🥃[QB] Vanilla
        • 🛠️Installation
        • 🗒️Config
      • 🛻[QB] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • 🥃[QB] Bahamas
        • 🛠️Installation
        • 📄Config
      • 🔫[QB] Ammunation
        • 🛠️Installation
        • 📄Config
      • 🐟[QB] Pearls
        • 🛠️Installation
        • 📄Config
      • 🔓[QB] Impound
        • 🛠️Installation
        • 📄Config
        • ✅Garages
      • 🚘[QB] Vehicleshop
        • 🛠️Installation
        • 📄Config
          • Functions
          • Job
          • Language
        • ❓Common Questions
    • General
      • 🏕️[QB] Camping
        • 🛠️Installation
        • 🗒️Config
          • Consumables
          • Language
      • 🎄[QB] Christmas
        • 🛠️Installation
        • 🗒️Config
      • 🎃[QB] Halloween
        • 🛠️Installation
        • 🗒️Config
      • 📔[QB] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 🗒️Config
        • 🔁Server-Exports
      • 🏘️[QB] Vespucci
        • 🛠️Installation
        • 🗒️Config
          • Brewery
          • Digital Den
          • Masquerade
          • Pro Bikes
      • 🏖️[QB] Beach Activities
        • 🛠️Installation
        • 🗒️Config
      • 🚘[QB] Car Rental
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • ✈️[QB] Sky Racing
        • 🛠️Installation
        • 📄Config
      • 🚘[QB] Car Wash
        • 🛠️Installation
        • 📄Config
      • 🪨[QB] Grinder
        • 🛠️Installation
        • 📄Config
      • 📹[QB] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
      • 🏠[QB] Motel
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • 🏚️[QB] Job Center
        • 📄Config
      • 🛠️[QB] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
    • Illegal
      • 🔫[QB] Gangs
        • 🛠️Installation
        • 🗒️Config
      • 🔔[QB] Drug Selling
        • 🗒️Config
      • 🌱[QB] Drugs
        • 🛠️Installation
        • 🗒️Config
      • 🍯[QB] Craft Potion
        • 🛠️Installation
        • 🗒️Config
      • 🅱️[QB] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🚗[QB] Car Thief
        • 🗒️Config
      • 🏠[QB] House Robbery
        • 🛠️Installation
        • 🗒️Config
      • 💎[QB] Jewelry
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ®️[QB] Mini Robberys
        • 🛠️Installation
        • 🗒️Config
      • 💰[QB] MoneyWash
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🔫[QB] Rob NPC
        • 🛠️Installation
        • 🗒️Config
      • 🏃‍♂️[QB] Runs
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ⛽[QB] Steal Fuel
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🏬[QB] Store Robbery
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🪛[QB] Scrapyard
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 👾[QB] Territories
        • 🛠️Installation
        • 📄Config
          • Functions
      • 🏨[QB] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • ESX
    • Jobs
      • 🚗[ESX] Tunerjob
        • ❗Dependencies
        • 🛠️Installation
          • ℹ️OX-Inventory
          • ℹ️QS-Inventory
        • 🗒️Config
          • BlacklistVehicles
          • Craft
          • Functions
          • Language
          • Targets
          • Wraps
          • Events
        • ❓Common Questions
      • 🚚[ESX] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🪵[ESX] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • 🛻[ESX] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[ESX] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🎣[ESX] Fishing
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • Diving
          • Fishingnet
          • Fishingrod
          • Seashells
          • Tournament
          • Upgrades
    • General
      • 🚘[ESX] Car Rental
        • 🛠️Installation
        • 🗒️Config
      • 📃[ESX] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 📄Config
        • 🔁 Server-Exports
      • 🚘[ESX] Car Wash
        • 🛠️Installation
        • 📄Config
      • 📹[ESX] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
        • 🏠[ESX] Motel
          • 🛠️Installation
          • 📄Config
          • 🖥️Compatibilities
      • 🛠️[ESX] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🎄[ESX] Christmas
        • 🛠️Installation
        • 📄Configs
    • Illegal
      • 🔫[ESX] Gangs
        • 🛠️Installation
        • 📄Config
        • ❓Common Questions
      • 🅱️[ESX] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🏨[ESX] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • Both Framework
    • Scripts
      • 🚗Car Rebuild
        • 🛠️Installation
        • 🗒️Config
      • 🗺️City Guide
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🛒Shops
        • 📄Config
        • 🛠️Installation
      • 🔁Reputation
        • 📄Config
        • 🛠️Installation
        • ⁉️Exports & Commands
          • Server Exports
          • Commands
      • 💤AFK System
        • 📄Configs
        • 🛠️Installation
      • 🚗Garages
        • 🛠️Installation
        • 📑User Guide
          • Create Garages
          • Create Private Garage
          • Impound & Auctions
          • Add vehicle to gang/job
          • Commands
      • ✈️Airplane Job
        • 🛠️Installation
        • 📃Configs
        • ℹ️Exports
      • 📋Scoreboard
        • 📃Config
      • 📦StorageUnits
        • 🛠️Installation
        • 📃Config
Powered by GitBook
On this page
  1. ESX
  2. Jobs
  3. [ESX] Lumberjack

Config

Config = {}

Config.Notify = "ox" -- "ox" / okok
Config.InvLink = "ox_inventory/web/build/images/" -- Your directory images inventory [ qs-inventory/html/images/]
Config.BreakAxe = true -- Break axe when chopping trees?
Config.Chance = 10 -- Chance to break the axe | 10 = 10%
Config.Webhook = "" -- Your webhook for logs
Config.CustomSkills = false -- If true you need add your own code on server/s_utils.lua

Config.NeedJob = {
	enable = true, -- Need job to use this job?
	job = "lumberjack", -- Job name
}

Config.Peds = {
	[1] = { model = "a_m_m_farmer_01", coords = vector4(-568.03, 5253.20, 69.49, 77.16) }, -- Starting the job
}

Config.Zones = { 
    ["Trees"] = { -- Zones to chop trees
		vector3(-510.88, 5388.94, 72.52),
		vector3(-505.14, 5391.08, 75.43),
		vector3(-492.71, 5394.9, 77.26),
		vector3(-499.98, 5400.61, 75.24),
		vector3(-557.72, 5418.73, 63.24),
		vector3(-562.07, 5421.19, 62.1),
		vector3(-501.86, 5380.23, 75.88),
		vector3(-501.78, 5377.01, 75.8),
		vector3(-501.51, 5374.06, 75.77)
	},
	["Process"] = { -- Zones to process wood or resin
		vector3(-501.81, 5267.85, 80.61),
		vector3(-500.97, 5269.91, 80.61),
		vector3(-515.02, 5263.43, 80.65),
		vector3(-517.01, 5257.59, 80.65),
		vector3(-508.54, 5257.29, 80.62)
	}
}

Config.Blips = {
	[1] = { Enable = true, Location = vector3(-568.03, 5253.20, 69.49), Sprite = 77, Display = 2, Scale = 0.8, Colour = 31, Name = "Lumberjack",},
	[2] = { Enable = true, Location = vector3(-516.58, 5257.02, 80.65), Sprite = 253, Display = 2, Scale = 0.8, Colour = 31, Name = "Process Wood",},
	[3] = { Enable = true, Location = vector3(-486.15, 5383.42, 78.71), Sprite = 79, Display = 2, Scale = 0.8, Colour = 31, Name = "Trees",},
	[4] = { Enable = true, Location = vector3(1202.3, -1316.73, 34.64), Sprite = 272, Display = 2, Scale = 0.8, Colour = 31, Name = "Warehouse Lumberjack",},
}

Config.Selling = {
	Location = vector3(1202.3, -1316.73, 34.64), -- Location to sell items to tickets
	Payment = {
		amount = { min = 5, max = 10 } -- Each ticket
	},
}

Config.Rent = {
    Model = "phantom", -- Model of vehicle
	Trailer = "trailerlogs", -- Model of trailer
    Plate = "Lumb", -- Plate
    Location = vector4(-579.88, 5243.57, 70.47, 172.18), -- Location to spawn the vehicle
	LocationTrailer = vector4(-577.47, 5252.38, 70.47, 163.89), -- Location to spawn the trailer
    Delete = vector4(-576.71, 5252.24, 70.47, 338.94), -- Location to return / delete the truck
    Fuel = "LegacyFuel", -- Your trigger fuel | "ps-fuel" , "LegacyFuel"
}

Config.Times = {
	TakeJob = 2500, -- Time of progressbar when you are obtaining the job
	Pickup = 2500, -- Time of progressbar when you are picking up
	Packing = 2500, -- Time of progressbar when you go packing the wood/resin
	Selling = 2500, -- Time of progressbar when you go selling wood/resin
}

Config.Drops = {
	PickupDrop = { -- List of items received when chop tree's
		"wood",
		"resin",
		"leaf",
	},
	pickup = { -- Amount received when chop tree's
		level1 = { min = 1, max = 2 }, -- Axe level 1
		level2 = { min = 2, max = 3 }, -- Axe level 2
		level3 = { min = 3, max = 4 }, -- Axe level 3
		level4 = { min = 4, max = 5 }, -- Axe level 4
		level5 = { min = 5, max = 6 }, -- Axe level 5
	}, 
}

Config.EnableMG = false -- Enable mini-game?
Config.Minigame = { -- ps-ui https://github.com/Project-Sloth/ps-ui
	NumberOfCircles = 2,
	MS = 20,
}

Config.Process = {
    ["wood_packaged"] = { 
        hash = "wood_packaged", 
        label = "Packaged Wood",
        materials = {
            [1] = { item = "wood",	amount = 5, label = "Wood" },
        }
    },
    ["resin_packaged"] = { 
        hash = "resin_packaged", 
        label = "Packaged Resin",
        materials = {
            [1] = { item = "resin",	amount = 5, label = "Resin" },
        }
    },
}

Config.Upgrades = {
    ["axelevel2"] = { 
        hash = "axelevel2", 
        label = "Axe Level 2",
        materials = {
            [1] = { item = "axelevel1",	amount = 1, label = "Axe Level 1" },
			[2] = { item = "wood",	amount = 10, label = "Wood" },
        }
    },
    ["axelevel3"] = { 
        hash = "axelevel3", 
        label = "Axe Level 3",
        materials = {
            [1] = { item = "axelevel2",	amount = 1, label = "Axe Level 2" },
			[2] = { item = "wood",	amount = 20, label = "Wood" },
        }
    },
	["axelevel4"] = { 
        hash = "axelevel4", 
        label = "Axe Level 4",
        materials = {
            [1] = { item = "axelevel3",	amount = 1, label = "Axe Level 3" },
			[2] = { item = "wood",	amount = 30, label = "Wood" },
        }
    },
	["axelevel5"] = { 
        hash = "axelevel5", 
        label = "Axe Level 5",
        materials = {
            [1] = { item = "axelevel4",	amount = 1, label = "Axe Level 4" },
			[2] = { item = "wood",	amount = 40, label = "Wood" },
        }
    },
}
function Notify(msg, type, time)
    if Config.Notify == "okok" then
        exports['okokNotify']:Alert('Notification', msg, time, type)
    elseif Config.Notify == "ox" then
        lib.notify({ title = 'Notification', description = msg, type = 'inform' })
    end
end
PreviousInstallationNext[ESX] Mechanic Run

Last updated 2 months ago

🪵
🗒️