-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathconfig.lua
270 lines (242 loc) · 9.92 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
Config = Config or {}
Config.UseBlips = true -- True / false option for toggling farm blips
Config.PedModel = "a_m_m_farmer_01" -- Ped model https://wiki.rage.mp/index.php?title=Peds
Config.PedHash = 0x94562DD7 -- Hash numbers for ped model
-- Blips
FoodProcessor = {
targetZone = vector3(2853.98, 4557.02, 46.15), -- qb-target vector
targetHeading = 5, -- qb-target box zone
coords = vector4(2853.98, 4557.02, 46.15, 25.64), -- Move Location (Ped and blip)
SetBlipSprite = 568, -- Blip Icon (https://docs.fivem.net/docs/game-references/blips/)
SetBlipDisplay = 6, -- Blip Behavior (https://docs.fivem.net/natives/?_0x9029B2F3DA924928)
SetBlipScale = 0.65, -- Blip Size
SetBlipColour = 35, -- Blip Color
BlipLabel = "Food Processor", -- Blip Label
minZ = 43.95, -- qb-target Min
maxZ = 47.95, -- qb-target Max
}
DairyProcessor = {
targetZone = vector3(2567.92, 4684.44, 33.05),
targetHeading = 330,
coords = vector4(2567.92, 4684.44, 33.05, 47.10),
SetBlipSprite = 568,
SetBlipDisplay = 6,
SetBlipScale = 0.65,
SetBlipColour = 32,
BlipLabel = "Dairy Processor",
minZ = 32.05,
maxZ = 35.00,
}
Seller = {
targetZone = vector3(760.4, -3194.97, 6.07),
targetHeading = 265.82,
coords = vector4(760.4, -3194.97, 6.07 - 1.00, 265.82),
SetBlipSprite = 642,
SetBlipDisplay = 6,
SetBlipScale = 0.65,
SetBlipColour = 17,
BlipLabel = "Farm Seller",
minZ = 4,
maxZ = 7,
}
-- Pig Farm (Food)
Config.PigFood = 5 -- Food Amount (Pig Food)
Config.FoodPrice = 5 -- Pig Farm Food Price
PigFarmer = vector4(2166.11, 5003.84, 40.39, 312.56) -- Ped Location
PigFarmerTargetZone = vector3(2166.11, 5003.84, 40.39) -- QB-Target location
PigFarmerTzHeading = 305 -- QB-Target Heading
PigFarmerMinZ = 40 -- QB-Target MinZ
PigFarmerMaxZ = 42 -- QB-Target MaxZ
-- Processing Items
Config.AppleProcessing = 3 -- Trading Amount
Config.BeefProcessing = 2
Config.BaconProcesing = 3
Config.HamProcessing = 2
Config.PorkProcessing = 1
Config.SausageProcessing = 2
Config.MilkProcessing = 2
Config.PumpkinProcessing = 1
Config.CornProcessing = 2
Config.GrapeProcessing = 3
Config.ChillyProcessing = 3
Config.TomatoesProcessing = 4
-- Processed Items
Config.AppleJuice = 1 -- Received Amount
Config.BaconProcessed = 3
Config.HamProcessed = 2
Config.PorkProcessed = 1
Config.SausageProcessed = 2
Config.CowMeat = 2
Config.Milk = 4
Config.PumpkinBoxes = 3
Config.CornProcessed = 1
Config.GrapeProcessed = 1
Config.ChillyProcessed = 1
Config.TomatoesProcessed = 1
-- Processing time
Config.ProcessingTime = {
["apple_processingtime"] = 5000, -- MS = Seconds (5000 ms = 5 seconds)
["beef_processingtime"] = 10000,
["bacon_processingtime"] = 10000,
["ham_processingtime"] = 10000,
["pork_processingtime"] = 10000,
["sausage_processingtime"] = 10000,
["milk_tradingtime"] = 7500,
["pumpkin_smashingtime"] = 7500,
["grape_processingtime"] = 7500,
["chillypepper_processingtime"] = 7500,
["tomatoes_processingtime"] = 7500,
}
-- Sell Items
Config.Sell = {
["apple"] = {
["price"] = math.random(5, 15) -- Seller Price
},
["apple_juice"] = {
["price"] = math.random(25, 35)
},
["milkbucket"] = {
["price"] = math.random(25, 35)
},
["raw_beef"] = {
["price"] = math.random(25, 35)
},
["beef"] = {
["price"] = math.random(25, 35)
},
["milk"] = {
["price"] = math.random(25, 35)
},
["rawpumpkin"] = {
["price"] = math.random(25, 35)
},
["pumpkinpiebox"] = {
["price"] = math.random(25, 35)
},
["slicedpie"] = {
["price"] = math.random(25, 35)
},
["corncob"] = {
["price"] = math.random(25, 35)
},
["canofcorn"] = {
["price"] = math.random(25, 35)
},
["grapes"] = {
["price"] = math.random(25, 35)
},
["grapejuice"] = {
["price"] = math.random(25, 35)
},
["greenpepper"] = {
["price"] = math.random(25, 35)
},
["chillypepper"] = {
["price"] = math.random(25, 35)
},
["hotsauce"] = {
["price"] = math.random(25, 35)
},
["tomato"] = {
["price"] = math.random(25, 35)
},
["tomatopaste"] = {
["price"] = math.random(25, 35)
},
["raw_bacon"] = {
["price"] = math.random(25, 35)
},
["raw_sausage"] = {
["price"] = math.random(25, 35)
},
["raw_pork"] = {
["price"] = math.random(25, 35)
},
["raw_ham"] = {
["price"] = math.random(25, 35)
},
["cooked_bacon"] = {
["price"] = math.random(25, 35)
},
["cooked_sausage"] = {
["price"] = math.random(25, 35)
},
["cooked_pork"] = {
["price"] = math.random(25, 35)
},
["cooked_ham"] = {
["price"] = math.random(25, 35)
},
["pig_leather"] = {
["price"] = math.random(25, 35)
},
["cow_leather"] = {
["price"] = math.random(25, 35)
}
}
-- Alert Notification
Config.Alerts = {
['cancel'] = 'Cancelled',
['weapon'] = 'You don\'t have a knife to do this',
['itemamount'] = 'You are trying to process a amount that is invalid try again!',
['apple_pickingbar'] = 'Picking Apples',
['apple_progressbar'] = 'Making Juice',
['apple_pickingfront'] = 'You picked ',
['apple_pickingend'] = ' apples from the tree',
['apple_processing'] = 'You are processing ' ..Config.AppleProcessing.. ' amount of apples',
['apple_trader'] = 'Received ' ..Config.AppleJuice.. ' apple juice from the framer',
['error_appleprocessor'] = 'Hm, It seems like you don\'t have any apples to process... Come back later!',
['cow_milking'] = 'Milking The Cow',
['emptybucket'] = 'You don\'t have a empty bucket',
['killing_cow'] = 'Slaughtering Cow',
['error_rawmeat'] = 'Hm, It looks like you don\'t have any raw meat to process... Come back later!',
['cow_processbar'] = 'Cooking cow beef',
['cow_processing'] = 'You cooked ' ..Config.BeefProcessing.. ' raw cow beef',
['cow_dairyprocessorbar'] = 'Trading Raw Milk',
['milk_processing'] = 'You are processing ' ..Config.MilkProcessing.. ' buckets of raw milk',
['milk_trader'] = 'Received ' ..Config.Milk.. ' Bottles of milk',
['error_milkprocessor'] = 'It looks like you don\'t have any buckets of milk..',
['error_milklocation'] = 'Go to the Paleto Barn and milk the cows then come back!',
['picking_pumpkins'] = 'Picking Up Pumpkin',
['pumpkin_processingbar'] = 'Smashing Pumpkins',
['pumpkin_processing'] = 'Smashed ' ..Config.PumpkinProcessing,
['pumpkin_trader'] = 'Made ' ..Config.PumpkinBoxes.. ' Boxes of pumpkin pie',
['error_pumpkinsmashing'] = 'You don\'t have any pumpkins to smash',
['corn_picking'] = 'Picking Corn',
['corn_progressbar'] = 'Making Can Corn',
['corn_processing'] = 'Removed ' ..Config.CornProcessing.. ' corn',
['corn_processed'] = 'Made ' ..Config.CornProcessed.. ' Can\'s of corn',
['error_corncob'] = 'Seems like you don\'t have any corn cobs to process... Come Back Later!',
['grape_picking'] = 'Picking Grapes',
['grape_progressbar'] = 'Straining Grapes',
['grape_processing'] = 'Strained ' ..Config.GrapeProcessing.. ' grapes',
['grape_processed'] = 'Made ' ..Config.GrapeProcessed.. ' bottles of juice',
['error_grape'] = 'Hm, It seems like you don\'t have any grapes to process... Come back later!',
['greenpepper_picking'] = "Picking GreenPeppers",
['chillypepper_picking'] = 'Picking ChillyPeppers',
['chilly_hotsauce'] = 'Making Hot Sauce',
['chilly_processing'] = 'Crushed ' ..Config.ChillyProcessing.. ' chilly Peppers',
['chilly_processed'] = 'Made ' ..Config.ChillyProcessed.. ' hot sauce bottle\'s',
['error_chilly'] = 'Hm, It seems like you don\'t have any chilly peppers to process... Come back later!',
['tomatoes_picking'] = 'Picking Tomatoes',
['tomatoes_progressbar'] = 'Smashing Tomatoes',
['tomatoes_processing'] = 'Squeezed ' ..Config.TomatoesProcessing.. ' tomatoes',
['tomatoes_processed'] = 'Made ' ..Config.TomatoesProcessed.. ' jars of tomatopaste',
['error_tomatoes'] = 'Hm, It seems like you don\'t have any tomatoes to process... Come back later!',
['bacon_progressbar'] = 'Cooking Bacon',
['bacon_processing'] = 'You cooked ' ..Config.BaconProcessed.. ' pieces of bacon',
['error_bacon'] = 'Don\'t have any bacon to cook',
['ham_progressbar'] = 'Cooking Ham',
['ham_processing'] = 'You cooked ' ..Config.HamProcessed.. ' slices of ham',
['error_ham'] = 'Don\'t have any ham to cook',
['pork_progressbar'] = 'Cooking Pork',
['pork_cooking'] = 'You cooked ' ..Config.PorkProcessed.. ' slabs of pork',
['error_pork'] = 'Don\'t have any pork to cook',
['sausage_progressbar'] = 'Cooking Sausage',
['sausage_processing'] = 'You cooked ' ..Config.SausageProcessed.. ' pieces of sausages',
['error_sausage'] = 'Don\'t have any sausage to cook',
['killing_pig'] = 'Slaughtering Pig',
['pig_reward'] = 'Received items for killing the pig',
['error.soybean'] = 'You don\'t have any soybeans to feed the pigs',
['stress'] = 'Your Stress Was Relieved',
}