forked from PickleModifications/pickle_farming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
253 lines (241 loc) · 9.07 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
Config = {}
Config.Language = "en"
Config.Debug = true
Config.Plant = {
WaterPerUse = 10, -- How many water points it should add to the plant.
WaterTime = 5, -- How long to water the plant.
HarvestTime = 5, -- How long to harvest the plant.
PlantTime = 5, -- How long to plant the seed.
WaterPostDelay = 0, -- Cooldown for Watering.
MaxPlayerPlants = 5, -- Maximum plants a player can grow at a time.
RenderDistance = 30.0, -- Distance to render spawned plants.
-- Don't change the below unless needed.
GrowingTick = 10, -- How often to tick the growing loop (only when growing).
GrowingPerTick = 0.01, -- How much to add to the percent in the growing lerp.
}
-- Weed
-- Cocaine
-- Heroin
Config.Seeds = {
['corn_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "corn_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['tomato_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "tomato_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['wheat_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "wheat_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['broccoli_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "broccoli_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['carrot_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "carrot_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['potato_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "potato_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['pickle_seed'] = {
Prop = {
Model = `prop_plant_fern_02a`,
Offsets = {
Start = vector4(0.0, 1.0, -1.0, 0.0),
End = vector4(0.0, 0.0, 1.0, 0.0),
}
},
Rewards = {
{name = "pickle_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['weed_seed'] = {
Prop = {
Model = `bkr_prop_weed_lrg_01a`,
Offsets = {
Start = vector4(0.0, 1.0, -2.4, 0.0),
End = vector4(0.0, 0.0, 1.8, 0.0),
}
},
Rewards = {
{name = "weed_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['cocaine_seed'] = {
Prop = {
Model = `bkr_prop_weed_lrg_01a`,
Offsets = {
Start = vector4(0.0, 1.0, -2.4, 0.0),
End = vector4(0.0, 0.0, 1.8, 0.0),
}
},
Rewards = {
{name = "cocaine_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 100,
},
['heroin_seed'] = {
Prop = {
Model = `bkr_prop_weed_lrg_01a`,
Offsets = {
Start = vector4(0.0, 1.0, -2.4, 0.0),
End = vector4(0.0, 0.0, 1.8, 0.0),
}
},
Rewards = {
{name = "heroin_raw", min = 1, max = 2},
},
Materials = {"Farm", "Farm2", "Farm3"}, -- If planting location has this material, plant.
Zones = {vector4(-98.9300, 1911.5332, 196.8396, 10.0)}, -- If planting location is inside this range, plant.
WaterNeeded = 10,
},
}
Config.ExchangeSettings = {
RenderDistance = 30.0, -- If exchange is a ped, what distance to display the ped.
EnableSkillCheck = true, -- DISABLE IF NOT USING OX_LIB.
ProcessTime = 5, -- Only used when EnableSkillCheck is false.
}
Config.Exchange = {
-- Processing
{
Type = "Process", -- Find first processable item, then reward per required.
Blip = {
Label = "Job: Farming (Processing)",
ID = 171,
Color = 47,
Scale = 0.85,
},
Location = vector4(2423.5002, 4985.6943, 45.9, 43.7853),
Catalog = {
["corn_raw"] = {required = 2, name = "corn", min = 1, max = 1},
["tomato_raw"] = {required = 2, name = "tomato", min = 1, max = 1},
["wheat_raw"] = {required = 2, name = "wheat", min = 1, max = 1},
["broccoli_raw"] = {required = 2, name = "broccoli", min = 1, max = 1},
["carrot_raw"] = {required = 2, name = "carrot", min = 1, max = 1},
["potato_raw"] = {required = 2, name = "potato", min = 1, max = 1},
["pickle_raw"] = {required = 2, name = "pickle", min = 1, max = 1},
}
},
-- Selling
{
Type = "Exchange", -- Go through entire inventory and exchange items for reward.
Blip = {
Label = "Job: Farming (Selling)",
ID = 207,
Color = 47,
Scale = 0.85,
},
NPCModel = `a_m_m_farmer_01`,
Location = vector4(1300.8643, 4318.9258, 37.1653, 301.4995),
Catalog = {
["corn"] = {name = "money", min = 20, max = 40},
["tomato"] = {name = "money", min = 20, max = 40},
["wheat"] = {name = "money", min = 20, max = 40},
["broccoli"] = {name = "money", min = 20, max = 40},
["carrot"] = {name = "money", min = 20, max = 40},
["potato"] = {name = "money", min = 20, max = 40},
["pickle"] = {name = "money", min = 20, max = 40},
}
},
}
Config.Blips = {
{
Label = "Job: Farming (Fields)",
ID = 677,
Color = 47,
Scale = 0.85,
Location = vector3(2516.3718, 4845.3442, 36.1397)
},
{
Label = "Job: Farming (Fields)",
ID = 677,
Color = 47,
Scale = 0.85,
Location = vector3(2225.2822, 5586.5454, 53.8013)
},
{
Label = "Job: Farming (Fields)",
ID = 677,
Color = 47,
Scale = 0.85,
Location = vector3(-98.9300, 1911.5332, 196.8396)
},
}