forked from Mycroft-Studios/esx-lumberjack
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.lua
298 lines (273 loc) · 8.81 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
Config = Config or {}
Config.Job = true -- False = Job is not required / True = Job is required
Config.UseBlips = true -- True / false option for toggling farm blips
Config.Timeout = 20 * (60 * 1000) -- 20 minutes
Config.FuelSystem = function(vehicle, level)
-- exports['LegacyFuel']:SetFuel(vehicle, level)
end
-- Blips
Config.Blips = {
LumberDepo = {
targetZone = vector3(1167.73, -1347.27, 33.92), -- qb-target vector
targetHeading = 273.47, -- qb-target box zone
coords = vector4(1167.73, -1347.27, 33.92, 273.47), -- Move Location (Ped and blip)
SetBlipSprite = 85, -- Blip Icon (https://docs.fivem.net/docs/game-references/blips/)
SetBlipDisplay = 6, -- Blip Behavior (https://docs.fivem.net/natives/?_0x9029B2F3DA924928)
SetBlipScale = 0.8, -- Blip Size
SetBlipColour = 5, -- Blip Color
BlipLabel = "Lumber Depo", -- Blip Label
minZ = 31.92, -- Max Z
maxZ = 35.92, -- Max Z
Vehicle = 'tiptruck', -- Job Vehicle
VehicleCoords = vector4(1162.27, -1318.55, 34.74, 173.91), -- Job Vehcile Coords
},
LumberProcessor = {
targetZone = vector3(-517.13, 5331.54, 79.26),
targetHeading = 336.38,
coords = vector4(-517.13, 5331.54, 79.26, 336.38),
SetBlipSprite = 365,
SetBlipDisplay = 6,
SetBlipScale = 0.8,
SetBlipColour = 64,
BlipLabel = "Lumber Processor",
minZ = 77.26,
maxZ = 81.26,
},
LumberSeller = {
targetZone = vector3(259.44, -3059.57, 4.86),
targetHeading = 131.34,
coords = vector4(259.44, -3059.57, 4.86, 131.34),
SetBlipSprite = 605,
SetBlipDisplay = 6,
SetBlipScale = 0.8,
SetBlipColour = 45,
BlipLabel = "Lumber Seller",
minZ = 2.86,
maxZ = 6.86,
}}
LumberJob = {
LumberModel = "s_m_y_construct_01", -- Ped model https://wiki.rage.mp/index.php?title=Peds
LumberHash = 0xD7DA9E99, -- Hash numbers for ped model
ChoppingTreeTimer = 12 * 1000, -- 12 second timer
ProcessingTime = 10 * 1000, -- 10 second timer
LumberAmount_Min = 2,
LumberAmount_Max = 6,
TreeBarkAmount_Min = 1,
TreeBarkAmount_Max = 10,
TradeAmount_Min = 3,
TradeAmount_Max = 6,
TradeRecevied_Min = 1,
TradeRecevied_Max = 3,
AxePrice = 100, -- Axe Price ($100)
}
Config.Sell = {
tree_lumber = math.random(45, 60), -- Seller Price,
tree_bark = math.random(20, 30),
wood_plank = math.random(65, 100),
}
Config.Axe = {
[`weapon_battleaxe`] = {}
}
Config.TreeLocations = {
{
coords = vector3(-504.47, 5392.09, 75.82),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-510.08, 5389.15, 73.71),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-558.32, 5418.98, 62.78),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-561.47, 5420.32, 62.39),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-578.9, 5427.22, 58.54),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-600.28, 5397.03, 52.48),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-614.04, 5399.73, 50.86),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-616.38, 5403.72, 50.59),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-553.08, 5445.65, 64.16),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-500.53, 5401.34, 75.05),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-491.78, 5395.47, 77.57),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-457.24, 5398.19, 79.35),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-456.87, 5408.32, 79.26),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-627.6, 5322.19, 59.86),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-626.05, 5315.49, 60.87),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-628.47, 5286.07, 63.75),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-604.23, 5243.57, 71.53),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-599.94, 5239.87, 71.87),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-556.65, 5233.61, 72.53),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-557.92, 5224.02, 77.24),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-546.26, 5219.38, 77.94),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-537.93, 5226.47, 78.52),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-628.32, 5286.04, 63.76),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-633.1, 5275.56, 69.11),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-604.37, 5243.69, 71.89),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-646.03, 5269.73, 74.01),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-644.29, 5241.2, 76.3),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-657.02, 5296.15, 69.35),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-659.05, 5293.48, 70.02),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-664.32, 5277.7, 74.4),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-615.24, 5433.06, 54.3),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-616.14, 5424.5, 51.71),
isChopped = false,
isOccupied = false,
},
{
coords = vector3(-690.07, 5304.85, 70.51),
isChopped = false,
isOccupied = false,
},
}
Config.Alerts = {
cancel = 'Cancelled',
error_lumber = 'You do not have any lumber to do this',
error_axe = 'You dont have a axe to chop the tree',
lumber_progressbar = 'Trading lumber for wooden planks',
itemamount = 'You are trying to process a amount that is invalid try again!',
lumber_processed_trade = 'You successfully traded ',
lumber_processed_lumberamount = ' Amount of Lumber for ',
lumber_processed_received = ' Piles of wooden panks',
error_sold = 'You dont have the items to sell here!',
successfully_sold = 'You have sold your items',
no_item = "You dont have anything to sell",
axe_check = 'You already have a axe',
axe_bought = 'You have bought a axe from the boss for $' ..LumberJob.AxePrice,
phone_sender = 'Lumber Mill Supervisor',
phone_subject = 'Job task',
phone_message = 'You have been tasked to gather lumber near the paleto bay lumber mill. Once you have finished gathering lumber speak to the mill boss to process the lumber.',
chopping_tree = 'Chopping Tree',
Tree_label = 'Start Chopping',
depo_label = 'Talk to boss',
mill_label = 'Talk to mill boss',
depo_blocked = 'Vehicle blocking depo',
depo_stored = 'Job Vehicle Stored',
vehicle_header = 'Lumber Jack Vehicles',
vehicle_get = 'Logger Vehicle',
vehicle_text = 'Job Vehicle',
battleaxe_label = 'Lumber Axe',
battleaxe_text = 'Axe used for chopping down trees',
vehicle_remove = 'Remove Vehicle',
remove_text = 'Remove Job Vehicle',
lumber_mill = 'Lumber Mill',
lumber_header = 'Process Lumber',
lumber_text = 'Trade for wooden planks',
Lumber_Seller = 'Sell Lumber',
goback = '< Go Back',
}