-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathconfig.lua
572 lines (530 loc) · 25.6 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
564
565
566
567
568
569
570
571
572
Config = {}
Lang = "English"
-- menu position
-- "center" / "top-left" / "top-right"
Config.Align = "top-left"
Config.DevMode = false -- if true you can use /reload to reload the script
Config.AllowSellItemsWithDecay = false -- if true you can sell items with decay, if false it will not detect items with decay only without
-- will only look for items with this percentage or above
Config.DecayPercentage = 10 -- if above is true then only items with 10 or above can be sold
-- items sold to store based on decay percentage if enabled above
Config.SellItemBasedOnPercentage = false -- if is true then it will sell items based on the percentage you set below like item to sell has 80% decay and price is 40$ player get only 38.25$
-- Webhook Section, description is in translation
Config.UseWebhook = false -- Use webhook
Config.WebhookLanguage = {
-- webhook link is in the server.lua
WebhookTitle = "",
WebhookColor = "",
WebhookName = "",
WebhookLogo = "",
WebhookLogo2 = "",
WebhookAvatar = ""
}
-- if you have UI you want to hid use it in this function
-- remove what you dont use
Config.UI = function(state)
if state then
--ExecuteCommand("hideneeds hidden")
--ExecuteCommand("hideui")
TriggerEvent('vorpmetabolism:setHud', false)
else
-- ExecuteCommand("hideneeds visible")
-- ExecuteCommand("showui")
TriggerEvent('vorpmetabolism:setHud', true)
end
end
-- open stores
Config.Key = 0x760A9C6F --[G] open stores
Config.Stores = {
-- any name you want sell items and buy items must have same name
Valentine = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true, -- allow blip to show on map?
Name = "valentine store", -- blip name
sprite = 1475879922, -- blip sprite
Pos = vector3(-324.628, 803.9818, 116.88), -- blip position and prompt press open position
},
Npc = {
Pos = vector4(-324.628, 803.9818, 116.88, -81.17), -- npc position
distanceRemoveNpc = 20.0, -- distance to remove npc
Allowed = true, -- allow npc to spawn?
Model = "U_M_M_NbxGeneralStoreOwner_01", -- npc model to spawn
},
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- Store type for buy and sell
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
storeName = "valentine", -- menu name
PromptName = "general store", -- prompt name
AllowedJobs = {}, -- if empty everyone can use or do {"police", "sheriff"}
JobGrade = 1, -- use ranks
StoreHoursAllowed = true, -- if you want the stores to use opening and closed hours
RandomPrices = true, -- prices of items will be random every restart if set to true based on the prices you added in the config items
distanceOpenStore = 3.0, -- distance to open store
StoreOpen = 7, -- am
StoreClose = 21, -- pm
DynamicStore = true, -- if true what you sell to the store will increase the stock of the store if in each item you add a value for stock
},
Rhodes = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "rhodes store",
sprite = 1475879922,
Pos = vector3(1330.227, -1293.41, 76.021),
},
Npc = {
Pos = vector4(1330.227, -1293.41, 76.021, 68.88),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "S_M_M_UNIBUTCHERS_01",
},
storeName = "Rhodes",
PromptName = " general store",
distanceOpenStore = 5.0,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 8,
StoreClose = 20,
DynamicStore = true,
},
Strawberry = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "strawberry store",
sprite = 1475879922,
Pos = vector3(-1789.66, -387.918, 159.32),
},
Npc = {
Pos = vector4(-1789.66, -387.918, 159.32, 56.96),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "S_M_M_UNIBUTCHERS_01",
},
storeName = "Strawberry",
PromptName = "general store",
distanceOpenStore = 3.0,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 6,
StoreClose = 23,
DynamicStore = true,
},
Blackwater = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "Blackwater Store",
sprite = 1475879922,
Pos = vector3(-784.738, -1321.73, 42.884),
},
Npc = {
Pos = vector4(-784.738, -1321.73, 42.884, 179.63),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "S_M_M_UNIBUTCHERS_01",
},
storeName = "Blackwater",
PromptName = "general store",
distanceOpenStore = 5.0,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
},
Armadillo = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "Armadillo Store",
sprite = 1475879922,
Pos = vector3(-3687.34, -2623.53, -13.43),
},
Npc = {
Pos = vector4(-3687.34, -2623.53, -13.43, -85.32),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "S_M_M_UNIBUTCHERS_01",
},
storeName = "Armadillo",
PromptName = "general store",
distanceOpenStore = 3.0,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
},
Tumbleweed = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "Tumbleweed Store",
sprite = 1475879922,
Pos = vector3(-5485.70, -2938.08, -0.299),
},
Npc = {
Pos = vector4(-5485.70, -2938.08, -0.299, 127.72),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "S_M_M_UNIBUTCHERS_01",
},
storeName = "Tumbleweed",
PromptName = "general store",
distanceOpenStore = 3.0,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
},
StDenis = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "St Denis Store",
sprite = 1475879922,
Pos = vector3(2824.863, -1319.74, 45.755),
},
Npc = {
Pos = vector4(2824.863, -1319.74, 45.755, -39.61),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "U_M_M_NbxGeneralStoreOwner_01",
},
storeName = "ST Denis",
PromptName = "general store",
distanceOpenStore = 3.0,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
},
Vanhorn = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "Vanhorn Store",
sprite = 1475879922,
Pos = vector3(3025.420, 561.7910, 43.722),
},
Npc = {
Pos = vector4(3025.420, 561.7910, 43.722, -99.20),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "U_M_M_NbxGeneralStoreOwner_01",
},
storeName = "Vanhorn",
PromptName = "general store",
distanceOpenStore = 2.5,
AllowedJobs = {},
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
},
BlackwaterFishing = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "Blackwater Fishing Store",
sprite = 3442726182,
Pos = vector3(-756.069, -1360.76, 43.724),
},
Npc = {
Pos = vector4(-756.069, -1360.76, 43.724, -90.80),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "U_M_M_NbxGeneralStoreOwner_01",
},
blipAllowed = true,
BlipName = "Fishing store",
storeName = "Bait Shop",
PromptName = "fishing store",
distanceOpenStore = 2.5,
AllowedJobs = {}, -- jobs allowed
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Bait", Type = "bait", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Fish", Type = "fish", desc = "sell fish", img = "butcher_table_production" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
},
Wapiti = {
isDeactivated = false, -- use this to activate stores or deactivate
useRandomLocation = false, -- if true it will pick a random location from the list bellow, good thing for a store that can move and not always in the same place and npc
possibleLocations = {
OpenMenu = {
-- vector3(-324.628, 803.9818, 116.88), -- valentine
-- add more it will pick a random location from the list
},
Npcs = {
-- vector4(-324.628, 803.9818, 116.88, -81.17), --valentine
-- add more it will pick a random location from the list
}
},
Blip = {
Allowed = true,
Name = "Wapiti Store",
sprite = 3442726182,
Pos = vector3(449.7435, 2216.437, 245.30),
},
Npc = {
Pos = vector4(449.7435, 2216.437, 245.30, -73.78),
distanceRemoveNpc = 20.0,
Allowed = true,
Model = "U_M_M_NbxGeneralStoreOwner_01",
},
storeName = "Wapiti Shop",
PromptName = "Native store",
distanceOpenStore = 2.5,
AllowedJobs = {}, -- jobs allowed
JobGrade = 0,
-- * store categories allow which category to show in the store
category = {
{ label = "Food", Type = "food", desc = "Delicious food", img = "consumable_bread_roll" },
{ label = "Tools", Type = "tools", desc = "Useful tools", img = "butcher_table_production" },
{ label = "Weapons", Type = "weapons", desc = "Buy weapons", img = "butcher_table_production" },
{ label = "Meds", Type = "meds", desc = "Medical supplies", img = "syringe" },
{ label = "Drinks", Type = "drinks", desc = "Refreshing beverages", img = "whisky" },
},
-- * store type allow which type of store to show in the store
storeType = {
{ label = "Buy", Type = "buy", desc = "Buy from store", img = "consumable_bread_roll" },
{ label = "Sell", Type = "sell", desc = "Sell to store", img = "butcher_table_production" },
},
StoreHoursAllowed = true,
RandomPrices = true,
StoreOpen = 7,
StoreClose = 21,
DynamicStore = true,
}
}