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] Mining

Config

Config = {}


-- ░██████╗░███████╗███╗░░██╗███████╗██████╗░░█████╗░██╗░░░░░
-- ██╔════╝░██╔════╝████╗░██║██╔════╝██╔══██╗██╔══██╗██║░░░░░
-- ██║░░██╗░█████╗░░██╔██╗██║█████╗░░██████╔╝███████║██║░░░░░
-- ██║░░╚██╗██╔══╝░░██║╚████║██╔══╝░░██╔══██╗██╔══██║██║░░░░░
-- ╚██████╔╝███████╗██║░╚███║███████╗██║░░██║██║░░██║███████╗
-- ░╚═════╝░╚══════╝╚═╝░░╚══╝╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝

Config.Settings = {
    Target = "text", -- "ox", "text"
    Notify = "ox", -- "qb", "okok", "ox"
    Inventory = "ox", -- "qs", "ox"
    Inv = "ox_inventory/web/images/", -- Your inventory | ox_inventory = "ox_inventory/web/images/" | qs-inventory = "qs-inventory/html/images/"
    Minigame = false, -- https://github.com/Project-Sloth/ps-ui
    NumberOfCircles = 2, -- NumberOfCircles | PS-ui
    MS = 20, -- MS | PS-ui
    Debug = false, -- If true, some prints show up
    Cooldown = true, -- If true, the player after 10x mining will have to rest 10 seconds
    CooldownTime = 10, -- Cooldown have the rest ( 10 = 10 Seconds )
    MoneyItem = "cash" -- Your item name of cash
}

-- ███╗░░░███╗██╗███╗░░██╗██╗███╗░░██╗░██████╗░
-- ████╗░████║██║████╗░██║██║████╗░██║██╔════╝░
-- ██╔████╔██║██║██╔██╗██║██║██╔██╗██║██║░░██╗░
-- ██║╚██╔╝██║██║██║╚████║██║██║╚████║██║░░╚██╗
-- ██║░╚═╝░██║██║██║░╚███║██║██║░╚███║╚██████╔╝
-- ╚═╝░░░░░╚═╝╚═╝╚═╝░░╚══╝╚═╝╚═╝░░╚══╝░╚═════╝░

Config.MiningSettings = {
    Peds = {
        [1] = { type = 4, hash = GetHashKey("s_m_m_dockwork_01"), loc = vector4(2962.55, 2752.96, 42.33, 154.1)}, -- Ped to open the shop and buy the pickaxe
        [2] = { type = 4, hash = GetHashKey("a_m_y_smartcaspat_01"), loc = vector4(-622.1, -232.23, 37.06, 126.36)}, -- Ped to sell ores pieces
    },
    Blips = {
        [1] = {enable = true, x = 2569.49, y = 2720.04, z = 41.93, sprite = 78, display = 4, scale = 0.8, colour = 16,  name = "Mining"},
        [2] = {enable = true, x = 1109.45, y = -2007.82, z = 31.04, sprite = 436, display = 4, scale = 0.8, colour = 22,  name = "Burning Rocks"},
        [3] = {enable = true, x = -623.06, y = -232.95, z = 38.06, sprite = 108, display = 4, scale = 0.8, colour = 25,  name = "Selling Ores"},
    },
    Targets = {
        ["Miner"] = { -- Ped to open the shop and buy the pickaxe
            [1] = vector3(2962.55, 2752.96, 43.33), 
        },
        ["Mining"] = { -- Locations to mine rocks
            [1] = vector3(2998.41, 2758.33, 42.97),
            [2] = vector3(2943.29, 2742.15, 43.48),
            [3] = vector3(2951.25, 2769.3, 39.02),
            [4] = vector3(2968.99, 2776.57, 38.38),
            [5] = vector3(2922.45, 2798.56, 41.17),
        },
        ["IllegalMining"] = { -- Locations to mine rocks
            [1] = vector3(-590.52, 2073.72, 131.29),
            [2] = vector3(-591.94, 2068.45, 131.18),
            [3] = vector3(-587.57, 2059.65, 130.66),
            [4] = vector3(-589.06, 2052.56, 130.17),
            [5] = vector3(-584.79, 2045.64, 129.53),
        },
        ["Burn"] = { -- Burn rocks
            [1]= vector3(1109.45, -2007.82, 31.04)
        },
        ["Selling"] = { -- Ped to selling normal drops
            [1] = vector3(-623.06, -232.95, 38.06),
        },
        ["Craft"] = {
            [1] = vector3(1073.29, -1988.24, 30.91),
        },
    },
    SellingOres = {
        Magnetite = { min = 10, max = 20}, -- Min & Max price player can get when selling magnetite on NPC
        Marble = { min = 10, max = 20}, -- Min & Max price player can get when selling marble on NPC
        Metal = { min = 10, max = 20}, -- Min & Max price player can get when selling metal on NPC
        Wolframite = { min = 10, max = 20}, -- Min & Max price player can get when selling wolframite on NPC
        Ferberite = { min = 10, max = 20}, -- Min & Max price player can get when selling ferberite on NPC
        -- ** NOTE **
        -- You can't add more items here
    },
    SellingAccessories = {
        DiamondChain = { min = 50, max = 150 }, -- Min & Max price player can get when selling Diamond Chain on NPC
        DiamondRing = { min = 50, max = 150 }, -- Min & Max price player can get when selling Diamond Ring on NPC
        EmeraldChain = { min = 50, max = 150 }, -- Min & Max price player can get when selling Emerald Chain on NPC
        EmeraldRing = { min = 50, max = 150 }, -- Min & Max price player can get when selling Emerald EmeraldRingRing on NPC
        GoldChain = { min = 50, max = 150 }, -- Min & Max price player can get when selling Gold Chain on NPC
        GoldRing = { min = 50, max = 150 }, -- Min & Max price player can get when selling Gold Ring on NPC
        QuartzChain = { min = 50, max = 150 }, -- Min & Max price player can get when selling Quartz Chain on NPC
        QuartzRing = { min = 50, max = 150 }, -- Min & Max price player can get when selling Quartz Ring on NPC
        RubyChain = { min = 50, max = 150 }, -- Min & Max price player can get when selling Ruby Chain on NPC
        RubyRing = { min = 50, max = 150 }, -- Min & Max price player can get when selling Ruby Ring on NPC 
        SapphireChain = { min = 50, max = 150 }, -- Min & Max price player can get when selling Sapphire Chain on NPC
        SapphireRing = { min = 50, max = 150 }, -- Min & Max price player can get when selling Sapphire Ring on NPC
        -- ** NOTE **
        -- You can't add more items here
    }
}

Config.Illegal = {
    NeedCops = false, -- Need cops to mine illegal?
    Amount = 2, -- Amount of cops need online
    Dispatch = "qs-dispatch", -- "ps-dispatch", "cd_dispatch" or "qs-dispatch"
    PoliceJob = {
        "police",
        "police2",
    }
}

Config.Rewards = {
    GetRare = 10, -- 10% Chance to get rare drop ( Mining & Burning )
    GeneralDrops = { -- General rewards 
        "rock", -- This stone can be burned and other ores will come out.
        "wolframite",
        "magnetite",
        "marble",
        "metal",
        "ferberite",
    },
    RareDrops = { -- Rare rewards ( This is the list always drop on illegal mining)
        "diamond_piece",
        "emerald_piece",
        "gold_piece",
        "quartz_piece",
        "ruby_piece",
        "sapphire_piece",
        "sulfur_piece",
    }
}

Config.JeweleryCrafting = {
    ["diamond"] = {
        hash = "diamond",
        label = "Diamond",
        image = "nui://ox_inventory/web/images/diamond.png",
        materials = {
        	[1] = { item = "diamond_piece", label = "Diamond Ore", amount = 5 },
        }
    },
    ["emerald"] = {
        hash = "emerald",
        label = "Emerald",
        image = "nui://ox_inventory/web/images/emerald.png",
        materials = {
        	[1] = { item = "emerald_piece", label = "Emerald Ore", amount = 5 },
        }
    },
    ["gold"] = {
        hash = "gold",
        label = "Gold",
        image = "nui://ox_inventory/web/images/gold.png",
        materials = {
        	[1] = { item = "gold_piece", label = "Gold Ore", amount = 5 },
        }
    },
    ["quartz"] = {
        hash = "quartz",
        label = "Quartz",
        image = "nui://ox_inventory/web/images/quartz.png",
        materials = {
        	[1] = { item = "quartz_piece", label = "Quartz Ore", amount = 5 },
        }
    },
    ["ruby"] = {
        hash = "ruby",
        label = "Ruby",
        image = "nui://ox_inventory/web/images/ruby.png",
        materials = {
        	[1] = { item = "ruby_piece", label = "Ruby Ore", amount = 5 },
        }
    },
    ["sapphire"] = {
        hash = "sapphire",
        label = "Sapphire",
        image = "nui://ox_inventory/web/images/sapphire.png",
        materials = {
        	[1] = { item = "sapphire_piece", label = "Sapphire Ore", amount = 5 },
        }
    },
}

Config.AccessoriesCrafting = {
    ["diamond_chain"] = {
        hash = "diamond_chain",
        label = "Diamond Chain",
        image = "nui://ox_inventory/web/images/diamond_chain.png",
        materials = {
        	[1] = { item = "diamond", amount = 5, label = "Diamond" },
        }
    },
    ["diamond_ring"] = {
        hash = "diamond_ring",
        label = "Diamond Ring",
        image = "nui://ox_inventory/web/images/diamond_ring.png",
        materials = {
        	[1] = { item = "diamond", amount = 5, label = "Diamond" },
        }
    },
    ["emerald_chain"] = {
        hash = "emerald_chain",
        label = "Emerald Chain",
        image = "nui://ox_inventory/web/images/emerald_chain.png",
        materials = {
        	[1] = { item = "emerald", amount = 5, label = "Emerald" },
        }
    },
    ["emerald_ring"] = {
        hash = "emerald_ring",
        label = "Emerald Ring",
        image = "nui://ox_inventory/web/images/emerald_ring.png",
        materials = {
            [1] = { item = "emerald", amount = 5, label = "Emerald" },
        }
    },
    ["gold_chain"] = {
        hash = "gold_chain",
        label = "Gold Chain",
        image = "nui://ox_inventory/web/images/gold_chain.png",
        materials = {
            [1] = { item = "gold", amount = 5, label = "Gold" },
        }
    },
    ["gold_ring"] = {
        hash = "gold_ring",
        label = "Gold Ring",
        image = "nui://ox_inventory/web/images/gold_ring.png",
        materials = {
            [1] = { item = "gold", amount = 5, label = "Gold" },
        }
    },
    ["quartz_chain"] = {
        hash = "quartz_chain",
        label = "Quartz Chain",
        image = "nui://ox_inventory/web/images/quartz_chain.png",
        materials = {
            [1] = { item = "quartz", amount = 5, label = "Quartz" },
        }
    },
    ["quartz_ring"] = {
        hash = "quartz_ring",
        label = "Quartz Ring",
        image = "nui://ox_inventory/web/images/quartz_ring.png",
        materials = {
            [1] = { item = "quartz", amount = 5, label = "Quartz" },
        }
    },
    ["ruby_chain"] = {
        hash = "ruby_chain",
        label = "Ruby Chain",
        image = "nui://ox_inventory/web/images/ruby_chain.png",
        materials = {
            [1] = { item = "ruby", amount = 5, label = "Ruby" },
        }
    },
    ["ruby_ring"] = {
        hash = "ruby_ring",
        label = "Ruby Ring",
        image = "nui://ox_inventory/web/images/ruby_ring.png",
        materials = {
            [1] = { item = "ruby", amount = 5, label = "Ruby" },
        }
    },
    ["sapphire_chain"] = {
        hash = "sapphire_chain",
        label = "Sapphire Chain",
        image = "nui://ox_inventory/web/images/sapphire_chain.png",
        materials = {
            [1] = { item = "sapphire", amount = 5, label = "Sapphire" },
        }
    },
    ["sapphire_ring"] = {
        hash = "sapphire_ring",
        label = "Sapphire Ring",
        image = "nui://ox_inventory/web/images/sapphire_ring.png",
        materials = {
            [1] = { item = "sapphire", amount = 5, label = "Sapphire" },
        }
    },
}
PreviousInstallationNext[ESX] Fishing

Last updated 2 months ago

⛏️
🗒️