forked from jimathy/jim-mining
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
131 lines (112 loc) · 6.08 KB
/
config.lua
File metadata and controls
131 lines (112 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
print("Jim-Mining - Mining Script by Jimathy")
Config = {}
Config = {
Blips = true, -- Enable Blips?
BlipNamer = false, -- Enable to Name Blips different things, disable if you already have too many blips as this will group them together
PropSpawn = true, -- Enable Ore Props
Pedspawn = true, -- Do you want to spawn peds for main locations?
Invincible = true, --Do you want the peds to be invincible?
Frozen = true, --Do you want the peds to be unable to move? It's probably a yes, so leave true in there.
Stoic = true, --Do you want the peds to react to what is happening in their surroundings?
Fade = true, -- Do you want the peds to fade into/out of existence? It looks better than just *POP* its there.
Distance = 40.0, --The distance you want peds to spawn at
}
--Blips and Locations
-- Each one has individual blip enablers
-- Mine and Mine Leave have headings for the player locations
Config.Locations = {
['Mine'] = { name = "Mine", location = vector3(-595.15,2091.23,131.46-1.03), heading = 61.59, blipTrue = true }, -- The location where you enter the mine
['Quarry'] = { name = "Quarry", location = vector3(2961.02, 2754.14, 43.71-1.03), heading = 200.0, blipTrue = true }, -- The location where you enter the mine
['Smelter'] = { name = "Smelter", location = vector3(1112.29, -2009.9, 31.46), blipTrue = true }, -- The location of the smelter
['Cracking'] = { name = "Stone Cracking", location = vector3(1109.27,-1992.68,30.99-1.03), heading = 305.0-180.0, blipTrue = false }, -- The location of the smelter
['Buyer'] = { name = "Ore Buyer", location = vector3(1085.7,-2001.04,31.41-1.03), heading = 323.73, blipTrue = false }, -- The Location of the ore buyer
['JewelCut'] = { name = "Jewel Cutting", location = vector3(1077.24, -1984.22, 31.0-0.97), heading = 300.0, blipTrue = false }, -- The Location of the jewel cutting bench. Couldn't decide so left in smeltery
['Buyer2'] = { name = "Jewel Buyer", location = vector3(-629.85, -240.31, 38.16-1.03), heading = 105.74, blipTrue = false }, -- The Location of the jewel buyer, I left this as Vangelico, others will proabably change to pawn shops
}
------------------------------------------------------------
--Ores and Props
Config.OrePositions = {
---MineShaft Locations
{ coords = vector3(-587.05, 2059.08, 129.75), },
{ coords = vector3(-588.49, 2048.05, 129.95-1.0), },
{ coords = vector3(-580.10, 2037.82, 128.8-1.0), },
{ coords = vector3(-572.28, 2022.37, 127.93-1.0), },
{ coords = vector3(-562.8, 2011.85, 127.55-1.0), },
--Quarry Locations
{ coords = vector3(2980.37, 2748.4, 43.4-1.5), },
{ coords = vector3(2985.77, 2751.19, 43.46-1.5), },
{ coords = vector3(2990.38, 2750.4, 43.46-1.5), },
{ coords = vector3(3000.77, 2754.15, 43.5-1.5), },
{ coords = vector3(2977.74, 2741.16, 44.54-1.5), },
}
-----------------------------------------------------------
Config.RewardPool = {
'carbon', 'carbon', 'carbon', 'carbon', --4x
'copperore', 'copperore', 'copperore', 'copperore', 'copperore', 'copperore', -- 6x
'goldore', 'goldore', 'goldore', --'goldore', -- 3x
'ironore', 'ironore', 'ironore', 'ironore', -- 'ironore', 'ironore', -- 6x
'metalscrap',
'uncut_ruby',
'uncut_emerald',
'uncut_diamond',
'uncut_sapphire',
}
------------------------------------------------------------
Config.SellItems = { -- Selling Prices
['copperore'] = 100,
['goldore'] = 100,
['ironore'] = 100,
['carbon'] = 100,
['goldbar'] = 100,
['uncut_emerald'] = 100,
['uncut_ruby'] = 100,
['uncut_diamond'] = 100,
['uncut_sapphire'] = 100,
['emerald'] = 100,
['ruby'] = 100,
['diamond'] = 100,
['sapphire'] = 100,
['diamond_ring'] = 100,
['emerald_ring'] = 100,
['ruby_ring'] = 100,
['sapphire_ring'] = 100,
['diamond_necklace'] = 100,
['emerald_necklace'] = 100,
['ruby_necklace'] = 100,
['sapphire_necklace'] = 100,
['gold_ring'] = 100,
['goldchain'] = 100,
['10kgoldchain'] = 100,
}
------------------------------------------------------------
Config.PedList = { -- APPARENTLY You can call config locations IN the config, learn't that one today
{ model = "S_M_Y_Construct_01", coords = Config.Locations['Mine'].location, heading = Config.Locations['Mine'].heading, gender = "male", scenario = "WORLD_HUMAN_CLIPBOARD", }, -- Outside Mine
{ model = "S_M_Y_Construct_01", coords = Config.Locations['Quarry'].location, heading = Config.Locations['Quarry'].heading, gender = "male", scenario = "WORLD_HUMAN_CLIPBOARD", }, -- Outside Mine
{ model = "S_M_Y_Construct_01", coords = Config.Locations['Buyer'].location, heading = Config.Locations['Buyer'].heading, gender = "male", scenario = "WORLD_HUMAN_CLIPBOARD", }, -- Ore Buyer
{ model = "S_M_M_HighSec_03", coords = Config.Locations['Buyer2'].location, heading = Config.Locations['Buyer2'].heading, gender = "male", scenario = "WORLD_HUMAN_CLIPBOARD", }, -- Jewel Buyer
}
------------------------------------------------------------
--Added mine lighting for my first world NVE problems
--Don't always light up...
Config.MineLights = {
{ coords = vector3(-594.30, 2082.89, 131.40+1.53), },
{ coords = vector3(-591.85, 2073.95, 131.35+1.53), },
{ coords = vector3(-589.98, 2066.16, 131.02+1.53), },
{ coords = vector3(-587.83, 2052.98, 130.21+1.53), },
{ coords = vector3(-583.94, 2041.11, 129.11+1.53), },
{ coords = vector3(-577.49, 2030.93, 128.24+1.53), },
{ coords = vector3(-567.83, 2020.27, 127.58+1.53), },
}
------------------------------------------------------------
--Mining Store Items
Config.Items = {
label = "Mining Store", slots = 7,
items = {
[1] = { name = "water_bottle", price = 0, amount = 100, info = {}, type = "item", slot = 1, },
[2] = { name = "sandwich", price = 0, amount = 250, info = {}, type = "item", slot = 2, },
[3] = { name = "bandage", price = 0, amount = 100, info = {}, type = "item", slot = 3, },
[4] = { name = "weapon_flashlight", price = 0, amount = 100, info = {}, type = "item", slot = 4, },
[5] = { name = "drill", price = 0, amount = 100, info = {}, type = "item", slot = 5, },
[6] = { name = "handdrill", price = 0, amount = 100, info = {}, type = "item", slot = 6, },
[7] = { name = "drillbit", price = 0, amount = 100, info = {}, type = "item", slot = 7, }, }
}