Config File
🌟 Our amazing Mining Job!
Config = {}
Config.Debug = false
Config.Language = 'en' -- Just 'pt' or 'en' for now
Config.Webhook = false -- Webhook link or false to disable
Config.Utils = {
RequiredJob = false, -- true or false
Job = 'miner', -- Put here your job (Only works if RequiredJob = true)
UseTarget = true, -- true or false | If false then will use DrawText/TextUI
Currency = '€', -- € or $ or another, just put your currency simbol here
-- NPC
NPCModel = 's_m_y_construct_01', -- Put here what Ped Model you want to use
NPCCoords = vector4(2569.5208, 2719.9883, 41.9300, 213.4377), -- Put here what coordinates for Ped Model you want to use
-- Durability
UseDurability = true, -- true or false -- IMPORTANT: Only works with supported inventories (Check bs-lib/inventories/*.lua) or you can add support at your own risk
-- Items
Pickaxe = 'ITEM NAME', -- Put here what Item is used for mining (Ex. 'pickaxe')
PickaxeDurabilityLoss = 3, -- Amount of durability the pick loses through use (Ex. 2) IMPORTANT: Only works if UseDurability is set to true
Drill = 'ITEM NAME', -- Put here what Item is used for mining (Ex. 'drill')
DrillDurabilityLoss = 2, -- Amount of durability the drill loses per use (Ex. 1) IMPORTANT: Only works if UseDurability is set to true
Animations = {
Clothes = {
animDict = 'clothingshirt',
anim = 'try_shirt_positive_d',
flags = 49,
ProgressDuration = 3000, -- 3 seconds
},
Mining = {
animDict = 'melee@large_wpn@streamed_core',
anim = 'ground_attack_on_spot',
prop = 'prop_tool_pickaxe',
Scenario = 'WORLD_HUMAN_CONST_DRILL',
ProgressDuration = 30000, -- 30 seconds
}
}
}
Config.Locations = { -- Locations that Players can mine
vector3(2977.45, 2741.62, 44.62),
vector3(2982.64, 2750.89, 42.99),
vector3(2994.92, 2750.43, 44.04),
vector3(2958.21, 2725.44, 50.16),
vector3(2946.3, 2725.36, 47.94),
vector3(3004.01, 2763.27, 43.56),
vector3(3001.79, 2791.01, 44.82),
-- Add more if you want
}
Config.Minerals = { -- Minerals that Player will obtain
-- { name = 'ITEM NAME', label = 'ITEM LABEL', chance = 100, pickaxeAmount = math.random(1, 2), drillAmount = math.random(2, 4), },
-- Add more if you want
}
Config.Sell = {
NPC = {
Model = 's_m_m_cntrybar_01', -- You can change for whatever NPC model you want (See Models here: https://docs.fivem.net/docs/game-references/ped-models)
Coords = {
vector4(287.66, 2843.74, 44.7, 119.2),
-- Add more if you want
},
MinusOne = true, -- Removes 1 coordinate at z-axis for better NPC positioning
TargetDistance = 2.0
},
-- Blip = { Enable = true (Have Blip) or false (No Blip), Label = 'BLIP LABEL', Id = BLIP ID, Colour = BLIP COLOUR, Scale = BLIP SCALE (0.6 is recommended) }, Blips IDs: https://docs.fivem.net/docs/game-references/blips/#blips | Blips Colours: https://docs.fivem.net/docs/game-references/blips/#blip-colors
Blip = { Enabled = true, Label = 'Sell Minerals', Id = 207, Colour = 5, Scale = 0.6 },
Account = 'bank', -- If you use QBCore only add 'bank' or 'cash', if you use ESX only add 'bank' or 'money'
Items = {
-- { item = 'ITEM NAME', label = 'ITEM LABEL', limit = ITEM LIMIT PER RESTART OR FALSE, price = 0 }, OR { item = 'ITEM NAME', label = 'ITEM LABEL', limit = ITEM LIMIT PER RESTART OR FALSE, price = math.random(0, 1) },
}
}
Config.MinerUniform = { -- IMPORTANT: Player Outfit will be saved in local script storage, please don't restart the script or player outfit will be lost
Male = { -- Male Uniform | You can change the Male Uniform to your likings
outfitData = {
['t-shirt'] = {59, 0},
['torso'] = {56, 0},
['arms'] = {0, 0},
['pants'] = {98, 18},
['shoes'] = {25, 0},
}
},
Female = { -- Female Uniform | You can change the Female Uniform to your likings
outfitData = {
['t-shirt'] = {36, 0},
['torso'] = {49, 0},
['arms'] = {0, 0},
['pants'] = {101, 18},
['shoes'] = {25, 0},
}
}
}
Last updated