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
137 lines (120 loc) · 5.35 KB
/
Copy pathconfig.lua
File metadata and controls
137 lines (120 loc) · 5.35 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
132
133
134
135
136
137
Config = {
Lan = "en", -- Pick your language here
System = {
Debug = false, -- enable debug mode
Menu = "ox", -- "qb", "ox", "gta"
ProgressBar = "gta", -- "qb", "ox", "gta"
Notify = "gta", -- "qb", "ox", "gta"
drawText = "gta" -- "qb", "ox", "gta"
},
General = {
JimShops = false, -- Set this to true if using jim-shops for the shops
DrillSound = true, -- enable/disable drill sounds
K4MB1Prop = false, -- Enable this to make use of K4MB1's ore props provided with their Mining Cave MLO
AltMining = false, -- Enables Alternate mining (enhanced with k4mb1's mining ore props)
-- Changes system to one based on rarity of ores specified in setMiningTable below
-- Every ore that spawns will give specific ores
K4MB1Cart = false, -- If using k4mb1's shaftcave mlo + caveprops
-- Allow players to use a minecart to get to the chambers faster
-- Add's target option to the store ped at the mine shaft
requiredJob = nil,
},
Crafting = {
craftCam = false,
MultiCraft = true, -- Enable multicraft
},
BreakTool = { -- BreakTool lowers the durability by default of a math.random(2, 3)
Pickaxe = true,
MiningDrill = false,
DrillBit = false,
MiningLaser = false,
GoldPan = false,
},
Timings = { -- Time it takes to do things
Cracking = { 15000, 25000 }, -- 15 - 25 seconds
Washing = { 15000, 25000 }, -- 15 - 25 seconds
Panning = { 45000, 50000 },-- 45 - 50 seconds
Pickaxe = { 30000, 45000 }, -- 30 - 45 seconds
Mining = { 45000, 50000 }, -- 45 - 50 seconds
Laser = { 7000, 10000 },
OreRespawn = math.random(55000, 75000),
Crafting = 5000, -- 5 seconds
},
PoolAmounts = {
Mining = {
AmountPerSuccess = { 1, 3 } -- Per success, this will give 1 - 3 of the selected item
},
Cracking = {
AmountPerSuccess = { 1, 3 } -- Per success, this will give 1 - 3 of the selected item
},
Panning = {
Successes = { 1, 2 }, -- When complete, default will give 1 or 2 items
AmountPerSuccess = { 1, 3 } -- Per success, this will give 1 - 3 of the selected item
},
Washing = {
Successes = { 1, 2 }, -- When complete, default will give 1 or 2 items
AmountPerSuccess = { 1, 3 } -- Per success, this will give 1 - 3 of the selected item
},
},
CrackPool = { -- Rewards from cracking stone
{ item = "carbon", rarity = "70",},
{ item = "copperore",rarity = "10",},
{ item = "ironore", rarity = "10",},
{ item = "metalscrap", rarity = "90",},
},
WashPool = { -- Rewards from washing stone
{ item = "goldore", rarity = "10",},
{ item = "copperore",rarity = "80",},
{ item = "uncut_ruby", rarity = "50" },
{ item = "uncut_emerald", rarity = "50"},
{ item = "uncut_diamond", rarity = "10"},
{ item = "uncut_sapphire", rarity = "50"},
},
PanPool = { -- Rewards from panning
{ item = "can", rarity = "90", },
{ item = "goldore", rarity = "10", },
{ item = "bottle", rarity = "10", },
{ item = "stone", rarity = "90", },
{ item = "silverore", rarity = "10", },
},
setMiningTable = { -- Set rarity of ore spawn for AltMining
{ name = "carbon", rarity = "common", prop = "k4mb1_coal2", },
{ name = "copperore", rarity = "common", prop = "k4mb1_copperore2", },
{ name = "ironore", rarity = "common", prop = "k4mb1_ironore2", },
{ name = "metalscrap", rarity = "common", prop = "k4mb1_leadore2" },
{ name = "goldore", rarity = "rare", prop = "k4mb1_goldore2" },
{ name = "silverore", rarity = "rare", prop = "k4mb1_tinore2" },
{ name = "uncut_ruby", rarity = "ultra_rare", prop = "k4mb1_crystalred" },
{ name = "uncut_emerald", rarity = "ultra_rare", prop = "k4mb1_crystalgreen" },
{ name = "uncut_diamond", rarity = "ultra_rare", prop = "k4mb1_diamond" },
{ name = "uncut_sapphire", rarity = "ultra_rare", prop = "k4mb1_crystalblue" },
{ name = "stone", rarity = "common", prop = "cs_x_rubweec" },
},
------------------------------------------------------------
--Mining Store Items
Items = {
label = "Mining Store", slots = 9,
items = {
{ name = "water_bottle", price = 2, amount = 100, info = {}, type = "item", slot = 1, },
{ name = "sandwich", price = 2, amount = 250, info = {}, type = "item", slot = 2, },
{ name = "bandage", price = 25, amount = 100, info = {}, type = "item", slot = 3, },
{ name = "weapon_flashlight", price = 75, amount = 100, info = {}, type = "item", slot = 4, },
{ name = "goldpan", price = 25, amount = 100, info = {}, type = "item", slot = 5, },
{ name = "pickaxe", price = 100, amount = 100, info = {}, type = "item", slot = 6, },
{ name = "miningdrill", price = 10000, amount = 50, info = {}, type = "item", slot = 7, },
{ name = "mininglaser", price = 60000, amount = 5, info = {}, type = "item", slot = 8, },
{ name = "drillbit", price = 0, amount = 100, info = {}, type = "item", slot = 9, },
},
},
}
function locale(section, string)
if not string then
print(section, "string is nil")
end
if not Config.Lan or Config.Lan == "" then return print("Error, no langauge set") end
local localTable = Loc[Config.Lan]
if not localTable then return "Locale Table Not Found" end
if not localTable[section] then return "["..section.."] Invalid" end
if not localTable[section][string] then return "["..string.."] Invalid" end
return localTable[section][string]
end