-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.lua
335 lines (307 loc) · 18.3 KB
/
config.lua
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
Config = Config or {}
------------
--MZ-SCRAP--
------------
--DEFAULT CRAFT LOCATION: 1176.08, 2635.15, 37.75
Config.NotifyType = 'okok' -- notification type: 'qb' for qb-core standard notifications, 'okok' for okokNotify notifications
Config.mzskills = true -- change to "false" if you wish to use this resource without using mz-skills
Config.ScrapXPSkill = "Scraping" -- Take the name of your scrap skill from mz-skills (make sure they are exactly the same)
Config.debugScrapOpt = true -- Set to false to remove debugging prints from console (server sided)
Config.SkillCheck = "ox" -- Change to "skillbar" to use skillbar, change to "ps" to use ps-ui, change to "ox" to use ox_lib
Config.TargetType = "ox" -- Switch between "qb" and "ox" depending on what target dependency your server uses.
Config.SellLocation = {
[1] = {
coords = vector3(-54.9, 6392.3, 31.62),
length = 1.4,
width = 0.5,
heading = 315,
debugPoly = false,
minZ = 29.02,
maxZ = 33.02,
distance = 1.0
},
}
------------------
--HAND SCRAPPING--
------------------
Config.handsearchlow = 3 -- Lowest time (in seconds) to search a wreck by hand
Config.handsearchhigh = 6 -- Lowest time (in seconds) to search a wreck by hand
--if using mz-skills, the following will apply for hand scrapping:
Config.handXPlow = 1 -- Lowest possible amount of XP for hand scrapping.
Config.handXPhigh = 3 -- Highest possible amount of XP for hand scrapping.
Config.handXPloss = 2 -- Amount of XP lost if skill check failed
-----------------------------------------------------------------------------------
Config.Handskillcheck = true -- change to 'false' if you do not want to skill check when searching by hand
--if the above is set to 'true' the following parameters apply:
Config.handscrapparses = 1 -- Number of parses to scrap a wreck by hand.
Config.handsearchtime = 13 -- time given to player regarding skill check
-----------------------------------------------------------------------------------
-------------------------
--SCREWDRIVER SCRAPPING--
-------------------------
Config.ScrewdriverRequiredItem = "screwdriver" -- The qb-core/items.lua name or label of the required item.
Config.ScrewdriverRequiredItemLabel = "Screwdriver" -- The name of the above item which will appear in notifications.
--if using mz-skills, the following will apply for screwdriver scrapping:
Config.screwdriverXP = 400 -- Minimum amount of "Scraping" XP to access screwdriver salvaging
Config.screwdriverXPlow = 1 -- Lowest possible amount of XP for screwdriver scrapping.
Config.screwdriverXPmid = 2 -- Mid possible amount of XP for screwdriver scrapping.
Config.screwdriverXPhigh = 4 -- Highest possible amount of XP for screwdriver scrapping.
Config.screwdriverXPloss = 3 -- Amount of XP lost for failing skillcheck
-----------------------------------------------------------------------------------
Config.screwdriversuccess = 2 -- Chance (in %) for the screwdriver to break from wear and tear (Set to 0 if you want to disable).
Config.screwsearchlow = 3 -- Lowest time (in seconds) to search a wreck with a screwdriver.
Config.screwsearchhigh = 5 -- Lowest time (in seconds) to search a wreck with a screwdriver.
Config.Screwdriverskillcheck = true -- change to 'false' if you do not want to skill check when searching by screwdriver.
--if the above is set to 'true' the following parameters apply:
Config.screwscrapparses = 2 -- Number of parses to scrap a wreck with a screwdriver.
Config.screwsearchtime = 12 -- time given to player regarding skill check
Config.screwdriverfail = 10 -- Chance (in %) for the screwdriver to break if skillcheck fails (Set to 0 if you want to disable).
-----------------------------------------------------------------------------------
-----------------------
--BLOWTORCH SCRAPPING--
-----------------------
Config.BlowtorchRequiredItem = "blowtorch" -- The qb-core/items.lua name or label of the required item.
Config.BlowtorchRequiredItemLabel = "Blowtorch" -- The name of the above item which will appear in notifications.
--if using mz-skills, the following will apply for blowtorch scrapping:
Config.blowtorchXP = 1600 -- Minimum amount of "Scraping" XP to access blowtorch salvaging.
Config.blowtorchXPlow = 2 -- Lowest possible amount of XP for blowtorch scrapping.
Config.blowtorchXPmid = 3 -- Mid possible amount of XP for blowtorch scrapping.
Config.blowtorchXPhigh = 5 -- Highest possible amount of XP for blowtorch scrapping.
Config.blowtorchXPloss = 4 -- Amount of XP lost for failing skill check with blowtorch.
-----------------------------------------------------------------------------------
Config.blowtorchsuccess = 2 -- Chance (in %) for the blowtorch to burn out from wear and tear (Set to 0 if you want to disable).
Config.blowsearchlow = 3 -- Lowest time (in seconds) to search a wreck with a blowtorch.
Config.blowsearchhigh = 8 -- Lowest time (in seconds) to search a wreck with a blowtorch.
Config.Blowtorchskillcheck = true -- change to 'false' if you do not want to skill check when searching by blowtorch.
--if the above is set to 'true' the following parameters apply:
Config.blowscrapparses = 3 -- Number of parses to scrap a wreck with a blowtorch.
Config.blowsearchtime = 10 -- time given to player regarding skill check.
Config.blowtorchfail = 15 -- Chance (in %) for the blowtorch to break if skillcheck fails (Set to 0 if you want to disable).
-----------------------------------------------------------------------------------
------------
--CRAFTING--
------------
-----------------------
--BREAKING DOWN TIRES--
-----------------------
-- ps-ui:circle parameters
Config.tireparselow = 4
Config.tireparsehigh = 6
Config.tiretimepslow = 9
Config.tiretimepshigh = 12
-- Skillbar:
Config.tirelow = 4 -- Lowest number of skillcheck parses to break down tires
Config.tirehigh = 6 -- Highest number of skillcheck parses to break down tires
Config.tiretimelow = 10 -- Lowest time (in seconds) to strip down tires.
Config.tiretimehigh = 15 -- Highest time (in seconds) to strip down tires.
Config.tiresneeded = 5 -- Number of tires needed to perform breakdown
Config.Rubberoutputlow = 15 -- Lowest amount of rubber from tire breakdown
Config.Rubberoutputhigh = 20 -- Highest amount of rubber from tire breakdown
--If you are using mz-skills, the following parameters apply:
Config.tireXPlow = 2 -- Lowest amount of "Scraping" XP obtained for breaking down tires.
Config.tireXPhigh = 4 -- Highest amount of "Scraping" XP obtained for breaking down tires.
Config.tireXPloss = 2 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
-----------------------------------------------------------------------------------
------------------
--CLEANING NAILS--
------------------
-- ps-ui:circle parameters
Config.nailparselow = 4
Config.nailparsehigh = 6
Config.nailtimepslow = 9
Config.nailtimepshigh = 12
-- skillbar parameters:
Config.naillow = 4 -- Lowest number of skillcheck parses to clean nails.
Config.nailhigh = 6 -- Highest number of skillcheck parses to clean nails.
Config.nailtimelow = 10 -- Lowest time (in seconds) to clean nails.
Config.nailtimehigh = 15 -- Highest time (in seconds) to clean nails.
Config.nailsneeded = 5 -- Number of nails needed to perform clean
Config.metaloutputlow = 15 -- Lowest amount of metalscrap from nails.
Config.metaloutputhigh = 20 -- Highest amount of metalscrap from nails.
--If you are using mz-skills, the following parameters apply:
Config.nailXPlow = 2 -- Lowest amount of "Scraping" XP obtained for cleaning nails.
Config.nailXPhigh = 4 -- Highest amount of "Scraping" XP obtained for cleaning nails.
Config.nailXPloss = 2 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
-----------------------------------------------------------------------------------
---------------------
--BREAK APART RADIO--
---------------------
-- ps-ui:circle parameters
Config.radioparselow = 4
Config.radioparsehigh = 6
Config.radiotimepslow = 9
Config.radiotimepshigh = 12
-- skillbar parameters:
Config.radiolow = 7 -- Lowest number of skillcheck parses to break apart radio.
Config.radiohigh = 9 -- Highest number of skillcheck parses to break apart radio.
Config.radiotimelow = 10 -- Lowest time (in seconds) to break apart radio.
Config.radiotimehigh = 15 -- Highest time (in seconds) to break apart radio.
Config.radiosneeded = 3 -- Number of radio needed to strip components.
Config.elecoutputlow = 7 -- Lowest amount of electric scrap from radio components.
Config.elecoutputhigh = 11 -- Highest amount of electric scrap from radio components.
--If you are using mz-skills, the following parameters apply:
Config.radioXPlow = 2 -- Lowest amount of "Scraping" XP obtained to break apart radio.
Config.radioXPhigh = 4 -- Highest amount of "Scraping" XP obtained to break apart radio.
Config.radioXPloss = 2 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
-----------------------------------------------------------------------------------
-------------
--CAR JACKS--
-------------
-- ps-ui:circle parameters
Config.jackparselow = 4
Config.jackparsehigh = 6
Config.jacktimepslow = 9
Config.jacktimepshigh = 12
-- skillbar parameters:
Config.jackslow = 7 -- Lowest number of skillcheck parses to break apart jacks.
Config.jackshigh = 9 -- Highest number of skillcheck parses to break apart jacks.
Config.jackstimelow = 10 -- Lowest time (in seconds) to break apart jacks.
Config.jackstimehigh = 15 -- Highest time (in seconds) to break apart jacks.
Config.jacksneeded = 3 -- Number of jacks needed to break apart.
Config.jacksmetaloutputlow = 6 -- Lowest amount of metal scrap from broken up jacks.
Config.jacksmetaloutputhigh = 9 -- Highest amount of metal scrap from broken up jacks.
Config.jackssteeloutputlow = 3 -- Lowest amount of steel from broken up jacks.
Config.jackssteeloutputlow = 6 -- Highest amount of steel from broken up jacks.
--If you are using mz-skills, the following parameters apply:
Config.jacksXPlow = 2 -- Lowest amount of "Scraping" XP obtained to break apart jacks.
Config.jacksXPhigh = 4 -- Highest amount of "Scraping" XP obtained to break apart jacks.
Config.jacksXPloss = 2 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
-----------------------------------------------------------------------------------
-------------
--CAR DOORS--
-------------
-- ps-ui:circle parameters
Config.doorparselow = 4
Config.doorparsehigh = 6
Config.doortimepslow = 9
Config.doortimepshigh = 12
-- skillbar parameters:
Config.doorslow = 6 -- Lowest number of skillcheck parses to break apart car doors.
Config.doorshigh = 8 -- Highest number of skillcheck parses to break apart car doors.
Config.doorstimelow = 10 -- Lowest time (in seconds) to break apart car doors.
Config.doorstimehigh = 15 -- Highest time (in seconds) to break apart car doors.
Config.doorsneeded = 3 -- Number of doors needed to break apart.
Config.doorglasslow = 5 -- Lowest amount of glass from broken up doors.
Config.doorglasshigh = 15 -- Highest amount of glass from broken up doors.
Config.doorironlow = 3 -- Lowest amount of iron from broken up doors.
Config.doorironhigh = 6 -- Highest amount of iron from broken up doors.
--If you are using mz-skills, the following parameters apply:
Config.doorsXPlow = 2 -- Lowest amount of "Scraping" XP obtained to break apart car doors.
Config.doorsXPhigh = 4 -- Highest amount of "Scraping" XP obtained to break apart car doors.
Config.doorsXPloss = 2 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
-----------------------------------------------------------------------------------
-------------
--CAR HOODS--
-------------
-- ps-ui:circle parameters
Config.hoodparselow = 4
Config.hoodparsehigh = 6
Config.hoodtimepslow = 9
Config.hoodtimepshigh = 12
-- skillbar parameters:
Config.hoodslow = 6 -- Lowest number of skillcheck parses to break apart car hood.
Config.hoodshigh = 8 -- Highest number of skillcheck parses to break apart car hood.
Config.hoodstimelow = 10 -- Lowest time (in seconds) to break apart car hood.
Config.hoodstimehigh = 15 -- Highest time (in seconds) to break apart car hood.
Config.hoodneeded = 3 -- Number of hoods needed to break apart.
Config.hoodscraplow = 5 -- Lowest amount of metal scrap from broken up hood.
Config.hoodscraphigh = 15 -- Highest amount of metal scrap from broken up hood.
Config.hoodcopperlow = 3 -- Lowest amount of copper from broken up hood.
Config.hoodcopperhigh = 6 -- Highest amount of copper from broken up hood.
--If you are using mz-skills, the following parameters apply:
Config.hoodsXPlow = 2 -- Lowest amount of "Scraping" XP obtained to break apart car hood.
Config.hoodsXPhigh = 4 -- Highest amount of "Scraping" XP obtained to break apart car hood.
Config.hoodsXPloss = 2 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
-----------------------------------------------------------------------------------
--------------
--CAR ENGINE--
--------------
-- ps-ui:circle parameters
Config.engineparselow = 4
Config.engineparsehigh = 6
Config.enginetimepslow = 9
Config.enginetimepshigh = 12
-- skillbar parameters:
Config.enginelow = 10 -- Lowest number of skillcheck parses to break apart car engine.
Config.enginehigh = 13 -- Highest number of skillcheck parses to break apart car engine.
Config.enginetimelow = 20 -- Lowest time (in seconds) to break apart car engine.
Config.enginetimehigh = 30 -- Highest time (in seconds) to break apart car engine.
Config.engineneeded = 1 -- Number of engines needed to break apart.
Config.enginescraplow = 7 -- Lowest amount of metal scrap from a broken up engine.
Config.enginescraphigh = 12 -- Highest amount of metal scrap from a broken up engine.
Config.enginecopperlow = 4 -- Lowest amount of copper from a broken up engine.
Config.enginecopperhigh = 8 -- Highest amount of copper from a broken up engine.
Config.engineironlow = 3 -- Lowest amount of iron from a broken up engine.
Config.engineironhigh = 6 -- Highest amount of iron from a broken up engine.
Config.enginesteellow = 5 -- Lowest amount of steel from a broken up engine.
Config.enginesteelhigh = 10 -- Highest amount of steel from a broken up engine.
--If you are using mz-skills, the following parameters apply:
Config.engineXPlow = 5 -- Lowest amount of "Scraping" XP obtained to break apart car engine.
Config.engineXPhigh = 8 -- Highest amount of "Scraping" XP obtained to break apart car engine.
Config.engineXPloss = 5 -- Amount of "Scraping" XP lost for failing crafting skillcheck.
Config.Objects = {
-- Scrap objects player can interact with
"prop_rub_buswreck_0",
"prop_rub_carwreck_1",
"prop_rub_carwreck_2",
"prop_rub_carwreck_3",
"prop_rub_carwreck_4",
"prop_rub_carwreck_5",
"prop_rub_carwreck_6",
"prop_rub_carwreck_7",
"prop_rub_carwreck_8",
"prop_rub_carwreck_9",
"prop_rub_carwreck_10",
"prop_rub_carwreck_11",
"prop_rub_carwreck_12",
"prop_rub_carwreck_13",
"prop_rub_carwreck_14",
"prop_rub_carwreck_15",
"prop_rub_carwreck_16",
}
Config.CarItems = {
[1] = {
item = "tissuebox",
price = math.random(20, 40)
},
[2] = {
item = "chewinggum",
price = math.random(25, 50)
},
[3] = {
item = "carwipers",
price = math.random(40, 60)
},
[4] = {
item = "fuelcap",
price = math.random(60, 80)
},
[5] = {
item = "carbattery",
price = math.random(100, 130)
},
[6] = {
item = "gearshift",
price = math.random(130, 175)
},
[7] = {
item = "airfilter",
price = math.random(160, 190)
},
[8] = {
item = "spoiler",
price = math.random(220, 260)
},
[9] = {
item = "carrim",
price = math.random(260, 300)
},
[10] = {
item = "cargrill",
price = math.random(300, 325)
},
[11] = {
item = "sparkplugs",
price = math.random(270, 310)
}
}