-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfig.lua
More file actions
443 lines (442 loc) · 14.5 KB
/
config.lua
File metadata and controls
443 lines (442 loc) · 14.5 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
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
return {
-- Spin animation settings
SpinDuration = 10000, -- 10 seconds
SpinCooldown = 3000, -- 3 seconds cooldown between spins
-- Case definitions - item names map to case types
-- WEIGHT SYSTEM EXPLANATION:
-- The "weight" value determines the probability of getting each item when opening a case.
-- Higher weight = higher chance of receiving that item
-- The probability is calculated as: item_weight / total_weight_of_all_items
--
-- Example for fleeca_case:
-- Total weight = 60 + 40 + 25 + 10 + 5 = 140
-- Marked Bills (weight 60): 60/140 = 42.86% chance
-- Bank Cards (weight 40): 40/140 = 28.57% chance
-- Band of Notes (weight 25): 25/140 = 17.86% chance
-- Advanced Lockpick (weight 10): 10/140 = 7.14% chance
-- Diamond Ring (weight 5): 5/140 = 3.57% chance
--
-- Tips for configuring weights:
-- - Common items (Gray): weight 50-100+ (40%+ drop chance - very likely to drop)
-- - Uncommon items (Green): weight 30-50 (25-40% drop chance - fairly common)
-- - Rare items (Blue): weight 15-30 (15-25% drop chance - moderate chance)
-- - Epic items (Purple): weight 5-15 (5-15% drop chance - low chance)
-- - Legendary items (Gold): weight 1-5 (1-5% drop chance - very low chance)
-- - Mythic items (Red): weight <1 (<1% drop chance - extremely rare)
--
-- OPTIONAL: You can override the auto-calculated rarity by adding a "rarity" field to any item:
-- rarity = 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary' | 'mythic'
-- This allows you to set the visual rarity independently from the drop chance.
-- Example: An item with weight 50 (common drop rate) can be displayed as 'legendary' visually.
Cases = {
fleeca_case = { -- Item Name
name = 'Fleeca Bank Case',
title = 'FLEECA CASE',
titleColor = '#10B981',
items = {
{
id = 1,
name = 'Marked Bills',
rarity = 'common',
weight = 80,
reward = {
type = 'money',
amount = 250,
moneyType = 'cash'
}
},
{
id = 2,
name = 'Bank Cards',
item = 'security_card_01',
rarity = 'uncommon',
weight = 45,
reward = {
type = 'item',
item = 'security_card_01',
amount = 1
}
},
{
id = 3,
name = 'Band of Notes',
item = 'bands',
rarity = 'rare',
weight = 20,
reward = {
type = 'item',
item = 'bands',
amount = 5
}
},
{
id = 4,
name = 'Advanced Lockpick',
item = 'advancedlockpick',
rarity = 'epic',
weight = 8,
reward = {
type = 'item',
item = 'advancedlockpick',
amount = 1
}
},
{
id = 5,
name = 'Diamond Ring',
item = 'diamond_ring',
rarity = 'legendary',
weight = 3,
reward = {
type = 'item',
item = 'diamond_ring',
amount = 1
}
},
{
id = 6,
name = 'Gold Bar',
item = 'goldbar',
rarity = 'mythic',
weight = 0.5,
reward = {
type = 'item',
item = 'goldbar',
amount = 1
}
}
}
},
house_case = {
name = 'House Robbery Case',
title = 'HOUSE BURGLARY CASE',
titleColor = '#F59E0B',
items = {
{
id = 1,
name = 'Cash Stash',
rarity = 'common',
weight = 50,
reward = {
type = 'money',
amount = 150,
moneyType = 'cash'
}
},
{
id = 2,
name = 'Gold Chain',
item = 'goldchain',
rarity = 'uncommon',
weight = 35,
reward = {
type = 'item',
item = 'goldchain',
amount = 3
}
},
{
id = 3,
name = 'Small TV',
item = 'small_tv',
rarity = 'common',
weight = 30,
reward = {
type = 'item',
item = 'small_tv',
amount = 1
}
},
{
id = 4,
name = 'Rolex Watch',
item = 'rolex',
rarity = 'epic',
weight = 15,
reward = {
type = 'item',
item = 'rolex',
amount = 1
}
},
{
id = 5,
name = 'Toaster',
item = 'toaster',
rarity = 'rare',
weight = 8,
reward = {
type = 'item',
item = 'toaster',
amount = 1
}
},
{
id = 6,
name = 'Safe Contents',
rarity = 'legendary',
weight = 3,
reward = {
type = 'money',
amount = 1000,
moneyType = 'cash'
}
}
}
},
chopshop_case = {
name = 'Chop Shop Case',
title = 'CHOP SHOP CASE',
titleColor = '#EF4444',
items = {
{
id = 1,
name = 'Scrap Metal',
item = 'metalscrap',
rarity = 'common',
weight = 60,
reward = {
type = 'item',
item = 'metalscrap',
amount = 15
}
},
{
id = 2,
name = 'Steel Parts',
item = 'steel',
rarity = 'uncommon',
weight = 40,
reward = {
type = 'item',
item = 'steel',
amount = 5
}
},
{
id = 3,
name = 'Nitrous',
item = 'nitrous',
rarity = 'rare',
weight = 15,
reward = {
type = 'item',
item = 'nitrous',
amount = 1
}
},
{
id = 4,
name = 'Electronic Kit',
item = 'electronickit',
rarity = 'epic',
weight = 5,
reward = {
type = 'item',
item = 'electronickit',
amount = 1
}
}
}
},
jewelry_case = {
name = 'Jewelry Store Case',
title = 'VANGELICO CASE',
titleColor = '#A855F7',
items = {
{
id = 1,
name = 'Gold Chains',
item = 'goldchain',
rarity = 'uncommon',
weight = 50,
reward = {
type = 'item',
item = 'goldchain',
amount = 3
}
},
{
id = 2,
name = 'Diamond Ring',
item = 'diamond_ring',
rarity = 'legendary',
weight = 30,
reward = {
type = 'item',
item = 'diamond_ring',
amount = 1
}
},
{
id = 3,
name = 'Gold Bar',
item = 'goldbar',
rarity = 'mythic',
weight = 15,
reward = {
type = 'item',
item = 'goldbar',
amount = 2
}
},
{
id = 4,
name = 'Luxury Watch',
item = 'rolex',
rarity = 'epic',
weight = 20,
reward = {
type = 'item',
item = 'rolex',
amount = 1
}
},
{
id = 5,
name = 'Roll of Notes',
item = 'rolls',
rarity = 'rare',
weight = 3,
reward = {
type = 'item',
item = 'rolls',
amount = 1
}
}
}
},
pacific_case = {
name = 'Pacific Bank Case',
title = 'PACIFIC STANDARD CASE',
titleColor = '#FFD700',
items = {
{
id = 1,
name = 'Gold Bars',
item = 'goldbar',
rarity = 'legendary',
weight = 35,
reward = {
type = 'item',
item = 'goldbar',
amount = 2
}
},
{
id = 2,
name = 'Mega Cash Bundle',
rarity = 'rare',
weight = 40,
reward = {
type = 'money',
amount = 2000,
moneyType = 'cash'
}
},
{
id = 3,
name = 'Band of Notes',
item = 'bands',
rarity = 'uncommon',
weight = 20,
reward = {
type = 'item',
item = 'bands',
amount = 3
}
},
{
id = 4,
name = 'Crypto USB',
item = 'cryptostick',
rarity = 'epic',
weight = 10,
reward = {
type = 'item',
item = 'cryptostick',
amount = 1
}
},
{
id = 5,
name = 'Secured Safe',
item = 'secured_safe',
rarity = 'mythic',
weight = 2,
reward = {
type = 'item',
item = 'secured_safe',
amount = 1
}
}
}
},
casino_case = {
name = 'Casino Heist Case',
title = 'DIAMOND CASINO CASE',
titleColor = '#DC2626',
items = {
{
id = 1,
name = 'Roll of Notes',
item = 'rolls',
rarity = 'uncommon',
weight = 60,
reward = {
type = 'item',
item = 'rolls',
amount = 10
}
},
{
id = 2,
name = 'Cash Trolley',
rarity = 'rare',
weight = 30,
reward = {
type = 'money',
amount = 1500,
moneyType = 'cash'
}
},
{
id = 3,
name = 'Expensive Champagne',
item = 'expensive_champagne',
rarity = 'epic',
weight = 25,
reward = {
type = 'item',
item = 'expensive_champagne',
amount = 1
}
},
{
id = 4,
name = 'Diamond Necklace',
item = 'md_diamondnecklace',
rarity = 'legendary',
weight = 10,
reward = {
type = 'item',
item = 'md_diamondnecklace',
amount = 1
}
},
{
id = 5,
name = 'Presidential Watch',
item = 'md_presidentialwatch',
rarity = 'mythic',
weight = 1,
reward = {
type = 'item',
item = 'md_presidentialwatch',
amount = 1
}
}
}
}
}
}