Mining Zones
The
key
is the mining zone nameThe zone coords must be
vector3
The ped coords must be
vector4
The rock object coords must be
vector4
The lights object coords (if enabled) must be
vector4
The conveyor object and rubble pile object coords (if enabled) must be
vector4
IMPORTANT INFORMATION
The
coal delivery zone
name must match themining zone name
to ensure it passes the correct data for the mission information
Config.Mining = {
['My Custom Mining Zone'] = { -- the key is the zone name and must be unique
zone = { -- define zone area
debug = true, -- debug zone
coords = vector3(2944.44, 2742.84, 42.37), -- zone location must be vector3
radius = 100, -- zone radius
thickness = 10, -- zone thickness
},
blip = { -- define blip settings
enabled = true, -- enable blip for this location
id = 566, -- blip id
colour = 5, -- blip colour
scale = 0.7, -- blip scale
title = 'My Custom Mining Zone', -- blip title
},
ped = { -- define ped settings
enabled = true,
coords = vector4(2946.61, 2745.21, 43.37, 14.96), -- coords to spawn worker ped must be vector4
model = 's_m_y_construct_01', -- ped model
icon = 'fa-solid fa-hammer', -- target icon
label = 'Mine Employee', -- target label
distance = 3.0, -- target distance
},
rocks = { -- define rocks that spawn inside the zone that players can mine for stone that they must then go and wash
model = { --define prop names that can spawn
'bzzz_prop_mine_coal_big',
'bzzz_prop_mine_copper_big',
'bzzz_prop_mine_crystal_big',
'bzzz_prop_mine_emerald_big',
'bzzz_prop_mine_garnet_big',
'bzzz_prop_mine_gold_big',
'bzzz_prop_mine_iron_big',
'bzzz_prop_mine_lead_big',
'bzzz_prop_mine_nefrit_big',
'bzzz_prop_mine_quartz_big',
'bzzz_prop_mine_ruby_big',
'bzzz_prop_mine_sapphire_big',
'bzzz_prop_mine_silver_big',
'bzzz_prop_mine_stone_big',
'bzzz_prop_mine_tin_big',
},
icon = 'fa-solid fa-hand-point-up', -- target icon
label = 'Mine Rock', -- target label
distance = 3.0, -- target distance
requiredItem = { -- define a required item for mining rocks
enabled = true, -- enable a required item to mine rocks
name = 'pickaxe', -- name of item required
breakChance = 5, -- chance for required item to break
},
progress = { -- define progressCircle settings
duration = 10000, -- duration
label = 'Mining rock', -- label
anim = { -- define animation settings
anim = 'melee@large_wpn@streamed_core', -- animation name
dict = 'ground_attack_on_spot', -- animation dict name
flag = 49, -- flag number
},
prop = { -- define prop settings
model = 'prop_tool_pickaxe', -- prop model
bone = 57005, -- bone index
pos = vec3(0.08, -0.4, -0.1), -- prop position
rot = vec3(80.0, -20.0, 175.0), -- prop rotation
},
},
coords = { -- define coords for rocks to spawn must be vector4
vector4(2944.86, 2791.42, 40.41, 0.0),
vector4(2948.68, 2794.74, 40.73, 0.0),
},
},
lights = { -- define lights that spawn in this zone so players can see during the night (these are purely decorative and serve no purpose other than to illuminate the area at night)
enabled = true, -- set to true to spawn the lights
model = 'prop_ind_light_02b', -- prop model
coords = { -- define coords for prop to spawn must be vector4
vector4(2937.22, 2754.29, 43.87, 0.0),
vector4(2917.80, 2784.54, 44.52, 0.0),
},
},
conveyors = { -- define conveyor belt settings
enabled = true, -- set to true to enable the chance to get black stone when mining rocks and spawn the conveyors to process it
blackStoneChance = 100, -- chance to get black stone when mining rocks if enabled
conveyorCoords = vector4(2998.23, 2765.52, 42.75, 153.04), -- conveyor coords
rubbleCoords = vector4(2994.54, 2758.16, 42.78, 334.04), -- rubble pile coords
info = {
icon = 'fa-solid fa-hand-point-up', -- target icon
label = 'Load conveyor belt', -- target label
distance = 3.0, -- target distance
},
blip = { -- define blip settings
enabled = true, -- enable blip for this location
id = 566, -- blip id
colour = 5, -- blip colour
scale = 0.7, -- blip scale
title = 'Conveyor Belt', -- blip title
},
prop = {
conveyor = 'prop_ind_conveyor_02', -- prop name for conveyor
rubble = 'prop_pile_dirt_02', -- prop name for pile of rubble
conveyorrock = 'bzzz_prop_mine_sulphur_a', -- prop name for rock that travels along the conveyor
rockZ = 0.60, -- Z axis for the conveyor rock prop
},
rewards = { -- define rewards given
{ name = 'zircon', amount = {min = 1, max = 3}, },
{ name = 'quartz', amount = {min = 1, max = 3}, },
{ name = 'monazite', amount = {min = 1, max = 3}, },
{ name = 'tanzanite', amount = {min = 1, max = 3}, },
{ name = 'kyawthuite', amount = {min = 1, max = 3}, },
},
},
},
--add more mining locations here as required
}
Last updated