-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_universal_farming_and_crafting.lua
557 lines (557 loc) · 21.5 KB
/
config_universal_farming_and_crafting.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
Config = {
useQbCore = false, -- if you are using ESX, change this value to false. If you are using QBCore, set value to true
esxExtendedName = 'es_extended', -- How you have named your es_extended mod, if you have renamed it.
qbCoreExportName = 'qb-core', -- for security reasons you can customise the qb-core export name. Attention if you change it, be sure you have also change it in qbCore
viewRangeForMarkers = 100, -- Player must be in this range that all markers will be rendered
enabledKeysWhenAnimation = { -- https://docs.fivem.net/docs/game-references/controls/
--38, -- E
23, -- F
1, --mouse controls
2, --mouse controls
3, --mouse controls
4, --mouse controls
5, --mouse controls
6, --mouse controls
7, --mouse controls
},
farmingArea = {
{
coordinate = vector3(2224.2272949219, 5577.224609375, 52.838172912598), -- position of the Location
scale = 1.0, -- the scale of the blip
enableBlip = false, -- enable Blip on map, if true, display, sprite, scale, color and name are required
display = 4, -- see displayId on https://docs.fivem.net/natives/?_0x9029B2F3DA924928
sprite = 127, -- blip symbol on map, see: https://docs.fivem.net/docs/game-references/blips/
scale = 1.0, -- scale of blip
color = 1, -- color of blip, see https://docs.fivem.net/docs/game-references/blips/
name = 'weedfield', -- the name of the track, if you change this value you also have to change it in tbm_race database table, otherwise it will create new database entries
radius = 8.0, -- Radius of the action to register
marker = 27, -- marker type see https://docs.fivem.net/docs/game-references/checkpoints/
rgba = { 120, 255, 120, 155 }, -- color of marker
subMarker = { -- not required
marker = 4, -- marker type see https://docs.fivem.net/docs/game-references/markers/
posZ = 4.66, -- z position of the subMarker
},
viewZone = false, -- view zone in game
enablePed = false, -- Enable the ped. pedModel, pedHash and pedOrientation is needed if you enable this options
pedModel = "csb_car3guy2", -- see https://wiki.rage.mp/index.php?title=Peds
pedHash = 0x1383A508, -- see https://wiki.rage.mp/index.php?title=Peds
pedOrientation = 127.24, -- the orientation of the ped
objects = {
{
--name = "",
--coordinate = vector3(2224.2272949219, 5577.224609375, 53.838172912598)
}
},
messages = {
start_message = 'Drück E um Hanf zu farmen.', -- will displayed if player enter the zone
has_not_all_needed_items = 'Du hast keine Lizens !', -- will displayed, if player has not all needed items
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !', -- will displayed, if player has to less space.
used_item_was_broken = "Dein Werkzeug ist kaput gegangen !", -- will displayed, if items that you need was destroyed
got_no_item_from_harvest = "Herstellung ist fehlgeschlagen !", -- will displayed, if harvest item was not produced related to chanceToGetItem config
not_enough_player_in_range = 'Ihr seid zu wenig', -- will displayed when not enough players in range, check minCountOfPlayer and minCountOfPlayerRange config value
},
itemsNeeded = { -- items that is needed to start process can be empty
--{
--count = 1, -- how many items are needed
--name = "water", -- what kind of items is needed
--removeAfterProcess = false, -- should the item remove after process
--breakChance = 100, -- chance that the item will destroyed on use 0 = zero destroy 100 = will destroyed
--}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = { -- the items that the player get after process, can be multiple items
{
name = "cannabis",
count = 1,
},
-- { -- example for a second item
-- name = "cannabis2",
-- count = 1,
--},
},
animation = { -- Animation config
directory = "amb@world_human_gardener_plant@male@idle_a", -- See animation types: https://github.com/KoningJesper/GTA-V-Animation-List/blob/master/Animation%201-999
name = "idle_b", -- The name from animation
repeatInMilliseconds = 1000, -- when should the animation repeated
duration = 6000 -- how long the animation and the farming process take in milliseconds
},
minCountOfPlayer = 2,
minCountOfPlayerRange = 10.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
police = {
"boss" -- grades of the job who can use this location, if empty every grade can use it
}
},
},
{
coordinate = vector3(2191.8310546875, 5595.8837890625, 52.768230438232),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = 'weed verarbeiter',
radius = 2.5,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = true,
pedModel = "g_m_y_ballasout_01",
pedHash = 0x23B88069,
pedOrientation = 250.67,
objects = {
{
-- name = "",
--coordinate = vector3(2191.8310546875,5595.8837890625,53.768230438232)
}
},
messages = {
start_message = 'Drück E um Hanf zu verarbeiten.',
has_not_all_needed_items = 'Du hast kein Cannabis !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
used_item_was_broken = "Dein Werkzeug ist kaput gegangen !",
got_no_item_from_harvest = "Herstellung ist fehlgeschlagen !",
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 1,
name = "cannabis",
removeAfterProcess = true,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "marijuana",
count = 1,
},
{
name = "stone",
count = 1,
}
},
animation = {
directory = "mini@repair",
name = "fixing_a_ped",
repeatInMilliseconds = 6000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
police = {},
},
},
{
coordinate = vector3(-99.235343933105, 1910.2657470703, 197.01683044434),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = 'kokafield',
radius = 5.0,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = false,
pedModel = "csb_car3guy2",
pedHash = 0x1383A508,
pedOrientation = 127.24,
objects = {
{
name = "prop_arcade_01",
coordinate = vector3(-99.024681091309, 1910.0178222656, 195.59498596191),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "p_int_jewel_plant_02",
coordinate = vector3(-103.30090332031, 1909.8846435547, 195.59498596191),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "p_int_jewel_plant_02",
coordinate = vector3(-99.479530334473, 1907.2567138672, 195.59498596191),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "p_int_jewel_plant_02",
coordinate = vector3(-99.084983825684, 1912.8758544922, 195.59498596191),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "p_int_jewel_plant_02",
coordinate = vector3(-96.571075439453, 1910.2009277344, 195.59498596191),
rotation = vector3(0.0, 0.0, 0.0),
}
},
messages = {
start_message = 'Drück E um Kokablatt zu farmen.',
has_not_all_needed_items = 'Du hast keine Lizens !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 0,
name = "water",
removeAfterProcess = false,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "coco_leaf",
count = 1,
}
},
animation = {
directory = "amb@world_human_gardener_plant@male@idle_a",
name = "idle_b",
repeatInMilliseconds = 1000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
},
},
{
coordinate = vector3(-52.83910369873, 1905.63671875, 194.36154174805),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = 'koka verarbeiter',
radius = 3.0,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = true,
pedModel = "a_m_m_hillbilly_01",
pedHash = 0x6C9B2849,
pedOrientation = 89.53,
objects = {
{
-- name = "",
--coordinate = vector3(2191.8310546875,5595.8837890625,53.768230438232)
}
},
messages = {
start_message = 'Drück E um Kokablatt zu verarbeiten.',
has_not_all_needed_items = 'Du hast kein Kokablatt !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 1,
name = "coco_leaf",
removeAfterProcess = true,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "coco",
count = 1,
}
},
animation = {
directory = "mini@repair",
name = "fixing_a_ped",
repeatInMilliseconds = 6000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
},
},
{
coordinate = vector3(136.0007019043, -3078.9677734375, 5.8963189125061),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = 'chemie 10071',
radius = 4.0,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = false,
pedModel = "csb_car3guy2",
pedHash = 0x1383A508,
pedOrientation = 127.24,
objects = {
{
--name = "",
--coordinate = vector3(3283.9375, 5182.02734375, 17.315376663208),
}
},
messages = {
start_message = 'Drück E um Chemikalien zu farmen.',
has_not_all_needed_items = 'Du hast keine Lizens !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 0,
name = "chemicalslisence",
removeAfterProcess = false,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "chemicals",
count = 1,
}
},
animation = {
directory = "mini@repair",
name = "fixing_a_ped",
repeatInMilliseconds = 6000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
},
},
{
coordinate = vector3(126.45768737793, -3113.2836914063, 4.9408769607544),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = '2057 chemie verarbeiter',
radius = 5.0,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = true,
pedModel = "s_m_y_pestcont_01",
pedHash = 0x48114518,
pedOrientation = 316.55,
objects = {
{
--name = "",
--coordinate = vector3(-52.83910369873, 1905.63671875, 193.36154174805)
}
},
messages = {
start_message = 'Drück E um Chemikalien zu verarbeiten.',
has_not_all_needed_items = 'Du hast keine Chemikalien !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 1,
name = "chemicals",
removeAfterProcess = true,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "lsd",
count = 1,
}
},
animation = {
directory = "mini@repair",
name = "fixing_a_ped",
repeatInMilliseconds = 6000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
},
},
{
coordinate = vector3(3285.3647460938, 5183.478515625, 17.415351867676),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = 'mohn 2057',
radius = 4.0,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = false,
pedModel = "csb_car3guy2",
pedHash = 0x1383A508,
pedOrientation = 127.24,
objects = {
{
name = "prop_plant_fern_01b",
coordinate = vector3(3285.3647460938, 5183.478515625, 17.115351867676),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "prop_plant_fern_01b",
coordinate = vector3(3284.4663085938, 5182.484375, 17.115351867676),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "prop_plant_fern_01b",
coordinate = vector3(3286.1435546875, 5184.5190429688, 17.115351867676),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "prop_plant_fern_01b",
coordinate = vector3(3286.4040527344, 5182.6430664063, 17.115351867676),
rotation = vector3(0.0, 0.0, 0.0),
},
{
name = "prop_plant_fern_01b",
coordinate = vector3(3284.5698242188, 5184.4677734375, 17.115351867676),
rotation = vector3(0.0, 0.0, 0.0),
}
},
messages = {
start_message = 'Drück E um Mohn zu farmen.',
has_not_all_needed_items = 'Du hast keine Lizens !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 0,
name = "chemicallicence",
removeAfterProcess = false,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "poppyresin",
count = 1,
}
},
animation = {
directory = "amb@world_human_gardener_plant@male@idle_a",
name = "idle_b",
repeatInMilliseconds = 1000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
},
},
{
coordinate = vector3(3333.1950683594, 5165.1694335938, 17.302536010742),
scale = 1.0,
enableBlip = false,
display = 4,
sprite = 127,
scale = 1.0,
color = 1,
name = '2057 mohn verarbeiter',
radius = 4.0,
marker = 27,
rgba = { 120, 255, 120, 155 },
subMarker = {
marker = 4,
posZ = 4.66,
},
viewZone = false,
enablePed = true,
pedModel = "a_m_m_hillbilly_02",
pedHash = 0x7B0E452F,
pedOrientation = 186.13,
objects = {
{
--name = "",
--coordinate = vector3(-52.83910369873, 1905.63671875, 193.36154174805)
}
},
messages = {
start_message = 'Drück E um Mohn zu verarbeiten.',
has_not_all_needed_items = 'Du hast kein Mohn !',
you_can_not_take_so_much_items = 'Du hast kein Platz mehr !',
not_enough_player_in_range = 'Ihr seid zu wenig',
},
itemsNeeded = {
{
count = 1,
name = "poppyresin",
removeAfterProcess = true,
breakChance = 0,
}
},
howManyItemsPlayerCanGet = 1,
chanceToGetItem = 100,
harvestItems = {
{
name = "heroin",
count = 1,
}
},
animation = {
directory = "mini@repair",
name = "fixing_a_ped",
repeatInMilliseconds = 6000,
duration = 6000
},
minCountOfPlayer = 1,
minCountOfPlayerRange = 3.0,
jobs = { -- jobs that can use this location, if empty all jobs can use this location
},
},
},
}