-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.lua
563 lines (513 loc) · 15.8 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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
Config = Config or {}
--DEFAULT CRAFTING LOCATION: -1156.22, -1999.3, 13.18 (Change the "BinParts" boxZone to relocate the crafting location)
-----------
--MZ-BINS--
-----------
Config.NotifyType = 'okok' -- notification type: 'qb' for qb-core standard notifications, 'okok' for okokNotify notifications
-------------------------
--BIN DIVING PROPERTIES--
-------------------------
--Fail function + chance of failure
Config.FailEnabled = true -- change to "false" if you do not want a player to have a chance to find nothing from searching a bin
Config.FailChance = 5 -- Percentage chance for a player to fail to find anything useful upon a successful search of a bin
--Time it takes to search bin:
Config.SearchTimeLow = 3 -- Lowest time it will take to search a bin (in seconds)
Config.SearchTimeHigh = 5 -- Highest time it will take to search a bin (in seconds)
-------------
--MZ-SKILLS--
-------------
Config.mzskills = true -- change to 'false' to utilise resource without using mz-skills re: "Searching" skill
-- If "Config.mzskills = true", the following parameters will apply:
Config.BinSkill = "Searching" -- Name of the skill that will apply when using mz-bins (must be the same as a skill from mz-skills/config.lua)
Config.diveXPlow = 1 -- Lowest amount of XP player will get for dumpster diving
Config.diveXPhigh = 3 -- Highest amount of XP player will get for dumpster diving
Config.diveXPloss = 2 -- Amount of XP lost for failing skillcheck (if skillcheck is enabled)
-- XP modifier (for use with mz-skills)
Config.DualXP = true -- Change to false to disable the use of 2x XP
Config.DualXPitem = "binjuice" -- Item to consume to activate 2x XP?
Config.dualXPtime = 30 -- Time (in minutes) for player to have double XP.
-----------------------
--BIN DIVE SKILLCHECK--
-----------------------
Config.skillcheck = true -- change to 'false' to remove the skillcheck connected to each bin dive.
--If you chose to use a skillcheck, the following parameters will apply
Config.diveparse = 1 -- Lowest number of skillcheck parses possible when bin diving.
Config.diveparsetime = 12 -- Time for bindive skill check (NOTE: A higher time makes the skillcheck slower but generally easier)
--------------
--RARE ITEMS--
--------------
Config.rareitems = true -- change to 'false' to disable (NOTE: Rare drops are in addition to standard drops, not in substitution)
--If you choose to have a potential for rare items to drop from searching bins, the following properties apply:
Config.Rareitem1 = "wd40" -- 1.5% chance to find when searching a bin
Config.Rareitem2 = "blankusb" -- 1% chance to find when searching a bin
Config.Rareitem3 = "binjuice" -- 0.5% chance to find when searching a bin
Config.Rareitem4 = "screwdriver" -- 0.5% chance to find when searching a bin
------------
--CRAFTING--
------------
Config.CraftSkillCheck = true -- Change to false to disable a skillcheck for each crafting component
--1. CRUSHING CANS
Config.canslow = 3 -- Lowest number of skillchecks to crush cans.
Config.canshigh = 5 -- Highest number of skillchecks to crush cans.
Config.canstimelow = 6 -- Lowest time (in seconds) to crush cans.
Config.canstimehigh = 10 -- Highest time (in seconds) to crush cans.
--If using "mz-skills" the following XP parameters will apply:
Config.cansXPlow = 3 -- Lowest amount of "Searching" XP gained from crushing cans.
Config.cansXPhigh = 6 -- Highest amount of "Searching" XP gained from crushing cans.
Config.cansXPloss = 3 -- Amount of "Searching" XP lost from failing to crush cans.
--Inputs and outputs
Config.cansamount = 3 -- Number of cans needed in order to be able to crush them.
Config.cansreturnlow = 3 -- Lowest return for crushing cans.
Config.cansreturnhigh = 5 -- Highest return for crushing cans.
----------------------------------------------------
--2. CRUSHING BOTTLES
Config.bottleslow = 3 -- Lowest number of skillchecks to crush bottles.
Config.bottleshigh = 5 -- Highest number of skillchecks to crush bottles.
Config.bottlestimelow = 6 -- Lowest time (in seconds) to crush bottles.
Config.bottlestimehigh = 10 -- Highest time (in seconds) to crush bottles.
--If using "mz-skills" the following XP parameters will apply:
Config.bottlesXPlow = 3 -- Lowest amount of "Searching" XP gained from crushing bottles.
Config.bottlesXPhigh = 6 -- Highest amount of "Searching" XP gained from crushing bottles.
Config.bottlesXPloss = 3 -- Amount of "Searching" XP lost from failing to crush bottles.
--Inputs and outputs
Config.bottlesamount = 3 -- Number of bottles needed in order to be able to crush them.
Config.bottlesreturnlow = 3 -- Lowest return for crushing bottles.
Config.bottlesreturnhigh = 5 -- Highest return for crushing bottles.
----------------------------------------------------
--3. CRUSHING BOTTLECAPS
Config.bottlecapslow = 5 -- Lowest number of skillchecks to crush bottlecaps.
Config.bottlecapshigh = 7 -- Highest number of skillchecks to crush bottlecaps.
Config.bottlecapstimelow = 6 -- Lowest time (in seconds) to crush bottlecaps.
Config.bottlecapstimehigh = 10 -- Highest time (in seconds) to crush bottlecaps.
--If using "mz-skills" the following XP parameters will apply:
Config.bottlecapsXPlow = 3 -- Lowest amount of "Searching" XP gained from crushing bottlecaps.
Config.bottlecapsXPhigh = 6 -- Highest amount of "Searching" XP gained from crushing bottlecaps.
Config.bottlecapsXPloss = 3 -- Amount of "Searching" XP lost from failing to crush bottlecaps.
--Inputs and outputs
Config.bottlecapsamount = 3 -- Number of bottlecaps needed in order to be able to crush them.
Config.bottlecapsreturnlow = 3 -- Lowest return for crushing bottlecaps.
Config.bottlecapsreturnhigh = 8 -- Highest return for crushing bottlecaps.
----------------------------------------------------
--4. CRUSHING BROKENCUP
Config.brokencuplow = 5 -- Lowest number of skillchecks to crush broken cups.
Config.brokencuphigh = 7 -- Highest number of skillchecks to crush broken cups.
Config.brokencuptimelow = 6 -- Lowest time (in seconds) to crush broken cups.
Config.brokencuptimehigh = 10 -- Highest time (in seconds) to crush broken cups.
--If using "mz-skills" the following XP parameters will apply:
Config.brokencupXPlow = 4 -- Lowest amount of "Searching" XP gained from crushing broken cups.
Config.brokencupXPhigh = 7 -- Highest amount of "Searching" XP gained from crushing broken cups.
Config.brokencupXPloss = 3 -- Amount of "Searching" XP lost from failing to crush broken cups.
--Inputs and outputs
Config.brokencupamount = 3 -- Number of brokencup needed in order to be able to crush them.
Config.brokencupreturnlow = 3 -- Lowest return for crushing broken cups.
Config.brokencupreturnhigh = 7 -- Highest return for crushing broken cups.
----------------------------------------------------
--OBJECTS--
-- Trash objects player can interact with - add more props to this list if you wish to expand the bin searching function to those props
Config.Objects = {
"prop_dumpster_01a",
"prop_dumpster_01a",
"prop_dumpster_02a",
"prop_dumpster_02b",
}
-----------------
--SELLING ITEMS--
-----------------
Config.SellLocation = {
-- PLEASE NOTE: If you change this - be sure to also change the details for the "sellbinitems" boxZone in client/main.lua.
-- Those details should match the details in this config variable.
[1] = {
coords = vector3(1703.29, 3779.5, 34.75),
length = 1.2,
width = 0.5,
heading = 125,
debugPoly = false,
minZ = 32.15,
maxZ = 36.15,
distance = 1.0
},
}
-- NO MZ-SKILLS
-- The following table applies if you are not using "mz-skills".
Config.TrashItemsNOXP = {
[1] = {
item = "bottlecaps",
price = 15
},
[2] = {
item = "ace",
price = 50
},
[3] = {
item = "sunglasses",
price = 60
},
[4] = {
item = "crayons",
price = 70
},
[5] = {
item = "teddy",
price = 85
},
[6] = {
item = "fabric",
price = 100
},
[7] = {
item = "actiontoy",
price = 130
},
[8] = {
item = "wd40",
price = 150
},
[9] = {
item = "screwdriver",
price = 170
},
}
--MZ-SKILLS
--The following tables apply if you are using "mz-skills". The relevant table called depends on the amount of "Searching" XP a player has at the time of attempting to sell items found in bins.
Config.TrashItems = {
[1] = {
item = "bottlecaps",
price = 15
},
[2] = {
item = "ace",
price = 50
},
[3] = {
item = "sunglasses",
price = 60
},
[4] = {
item = "crayons",
price = 70
},
[5] = {
item = "teddy",
price = 85
},
[6] = {
item = "fabric",
price = 100
},
[7] = {
item = "actiontoy",
price = 130
},
[8] = {
item = "wd40",
price = 150
},
[9] = {
item = "screwdriver",
price = 170
},
}
Config.TrashItems2 = { -- 10% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 17
},
[2] = {
item = "ace",
price = 55
},
[3] = {
item = "sunglasses",
price = 66
},
[4] = {
item = "crayons",
price = 77
},
[5] = {
item = "teddy",
price = 94
},
[6] = {
item = "fabric",
price = 110
},
[7] = {
item = "actiontoy",
price = 143
},
[8] = {
item = "wd40",
price = 165
},
[9] = {
item = "screwdriver",
price = 187
},
}
Config.TrashItems3 = { -- 20% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 18
},
[2] = {
item = "ace",
price = 60
},
[3] = {
item = "sunglasses",
price = 72
},
[4] = {
item = "crayons",
price = 84
},
[5] = {
item = "teddy",
price = 102
},
[6] = {
item = "fabric",
price = 120
},
[7] = {
item = "actiontoy",
price = 156
},
[8] = {
item = "wd40",
price = 180
},
[9] = {
item = "screwdriver",
price = 204
},
}
Config.TrashItems4 = { -- 30% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 20
},
[2] = {
item = "ace",
price = 65
},
[3] = {
item = "sunglasses",
price = 78
},
[4] = {
item = "crayons",
price = 91
},
[5] = {
item = "teddy",
price = 111
},
[6] = {
item = "fabric",
price = 130
},
[7] = {
item = "actiontoy",
price = 169
},
[8] = {
item = "wd40",
price = 195
},
[9] = {
item = "screwdriver",
price = 221
},
}
Config.TrashItems5 = { -- 40% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 21
},
[2] = {
item = "ace",
price = 70
},
[3] = {
item = "sunglasses",
price = 84
},
[4] = {
item = "crayons",
price = 98
},
[5] = {
item = "teddy",
price = 119
},
[6] = {
item = "fabric",
price = 140
},
[7] = {
item = "actiontoy",
price = 182
},
[8] = {
item = "wd40",
price = 210
},
[9] = {
item = "screwdriver",
price = 238
},
}
Config.TrashItems6 = { -- 50% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 23
},
[2] = {
item = "ace",
price = 75
},
[3] = {
item = "sunglasses",
price = 90
},
[4] = {
item = "crayons",
price = 110
},
[5] = {
item = "teddy",
price = 128
},
[6] = {
item = "fabric",
price = 150
},
[7] = {
item = "actiontoy",
price = 195
},
[8] = {
item = "wd40",
price = 225
},
[9] = {
item = "screwdriver",
price = 255
},
}
Config.TrashItems7 = { -- 60% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 24
},
[2] = {
item = "ace",
price = 80
},
[3] = {
item = "sunglasses",
price = 96
},
[4] = {
item = "crayons",
price = 112
},
[5] = {
item = "teddy",
price = 136
},
[6] = {
item = "fabric",
price = 160
},
[7] = {
item = "actiontoy",
price = 208
},
[8] = {
item = "wd40",
price = 240
},
[9] = {
item = "screwdriver",
price = 272
},
}
Config.TrashItems8 = { -- 75% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 27
},
[2] = {
item = "ace",
price = 88
},
[3] = {
item = "sunglasses",
price = 105
},
[4] = {
item = "crayons",
price = 123
},
[5] = {
item = "teddy",
price = 149
},
[6] = {
item = "fabric",
price = 175
},
[7] = {
item = "actiontoy",
price = 228
},
[8] = {
item = "wd40",
price = 263
},
[9] = {
item = "screwdriver",
price = 298
},
}
Config.TrashItems9 = { -- 100% increase in price (off base prices) rounded to the nearest dollar
[1] = {
item = "bottlecaps",
price = 30
},
[2] = {
item = "ace",
price = 100
},
[3] = {
item = "sunglasses",
price = 120
},
[4] = {
item = "crayons",
price = 140
},
[5] = {
item = "teddy",
price = 170
},
[6] = {
item = "fabric",
price = 200
},
[7] = {
item = "actiontoy",
price = 260
},
[8] = {
item = "wd40",
price = 300
},
[9] = {
item = "screwdriver",
price = 340
},
}