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. QBCore
  2. Jobs
  3. [QB] Hunting

Config

Config = {}

---------------
-- Utilitys
---------------
Config.CoreName = "qb-core" -- Yoru core folder name
Config.EnableCallCops = true -- Enable police on illegal hunting?
Config.ChanceCallCops = 10 -- Chance to call cops
Config.Dispatch = 'ps-dispatch' -- "ps-dispatch" or "cd_dispatch"
Config.CoreSkillls = false -- If you need trigger core skills or other, on s_editable.
Config.Minigame = false -- Enable minigame when skin the animal? ( ps-ui )
Config.Debug = true -- If true you have the command /bait to spawn the animal
Config.Inventory = "ox" -- "qb" or "ox"
Config.Target = "ox" -- "qb" or "ox"
Config.InvLink = "qb-inventory/html/images/" -- Your directory inventory images
Config.CooldownBait = 1 -- | 1 Minute
Config.DistanceDelete = 75  -- If you move more than 75m away from the animal, it automatically turns off
Config.Radius = 25 -- Maximum distance the animal can spawn when baited.

---------------
-- Zones
---------------
Config.EnableZones = true
Config.Radius = 50 -- Radius of the zone if you use Enable Zones
Config.HuntingZones = {
	[1] = {coords = vector3(495.66, 5587.17, 794.22), illegal = true, blipEnable = true, blipSprie = 313, blipColour = 1, blipScale = 0.8, blipName = "Illegal Hunting" },
	[2] = {coords = vector3(-712.77, 5302.93, 72.27), illegal = false, blipEnable = true, blipSprie = 313, blipColour = 2, blipScale = 0.8, blipName = "Legal Hunting" }
}

---------------
-- Animals
---------------
Config.LegalAnimals = { -- https://docs.fivem.net/docs/game-references/ped-models/#animals
    'a_c_deer',
}

Config.IlegalAnimals = { -- https://docs.fivem.net/docs/game-references/ped-models/#animals
    'a_c_boar',
}

---------------
-- Drops on hunting
---------------
Config.LegalDrops = { 
	"badleather",
	"medleather",
	"badmeat",
	"medmeat",
	"badhorns",
	"medhorns",
}

Config.IlegalDrops = {
	"maxleather",
	"maxmeat",
	"maxhorns",
}

---------------
-- Rewards / Prices
---------------
-- Rewards
Config.RewardsKnife = {
	Level_01 = { Min = 1, Max = 1 },
	Level_02 = { Min = 1, Max = 2 },
	Level_03 = { Min = 1, Max = 3 },
	Level_04 = { Min = 1, Max = 4 },
	Level_05 = { Min = 1, Max = 5 },
}

-- Prices
Config.Payment = "cash" -- "cash" or "bank"
Config.SellingItems = {
	BeefBad = math.random(1,2),
	BeefMed = math.random(2,3),
	BeefMax = math.random(3,4),
	LeatherBad = math.random(1,2),
	LeatherMed = math.random(2,3),
	LeatherMax = math.random(3,4),
	HornsBad = math.random(1,2),
	HornsMed = math.random(2,3),
	HornsMax = math.random(3,4)
}

---------------
-- Upgrades
---------------
-- Knifes
Config.ItemUpNvl2 = "maxleather"
Config.AmountItemUpNvl2 = 30
Config.ItemUpNvl3 = "maxleather"
Config.AmountItemUpNvl3 = 60
Config.ItemUpNvl4 = "maxleather"
Config.AmountItemUpNvl4 = 90
Config.ItemUpNvl5 = "maxleather"
Config.AmountItemUpNvl5 = 120

---------------
-- Notifications
---------------
Language = {
	["Falhaste"] = "You failed.",
	["SemFaca"] = "You don't have a knife with you.",
	["JaTens"] = "You already have a knife with you",
	["NaoTensNecessario"] = "You don't have the right items.",
	["AnimalRanAway"] = "Animal ran away, you were too close",
	["NoJob"] = "You don't know how to use this",	-- When job is required and the player doesn't have
	["Cooldown"] = "You have cooldown please wait:",
	["UsingBait"] = "Using the bait...",
	["Skining"] = "Skining...",
	["WronZone"] = "Wrong zone!",
	["AnimalSkin"] = "The animal is not available to be skinned.",
	["AnimalBlip"] = "Animal",
}

---------------
-- Peds
---------------
Config.Peds = {
	[1] = { type = 4, hash = GetHashKey("a_m_m_eastsa_01"), loc = vector4(-773.2, 5597.93, 32.61, 192.02)}, -- Ped to open the shop and buy the pickaxe
}

-----------------
-- Shop
-----------------
Config.HuntingShop = {
    [1] = { name = "huntinglegalbait",    price = 5, amount = 10, info = {}, type = "item", slot = 1 },
	[2] = { name = "huntingillegalbait",    price = 5, amount = 10, info = {}, type = "item", slot = 2 },
}                      
PreviousInstallationNext[QB] Lumberjack

Last updated 1 year ago

⛰️
🗒️