This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
config.lua
371 lines (283 loc) · 15 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
Config = {} -- Don't Remove This
Config.UseTarget = true -- Compatible with qb-target (If you set the value to true, the menu will be opened with qb-target. If you set the value to false, there will be a blip when you go near it and you will have to press the specified key)
Config.Key = 38 -- Change this if you don't wanna use qb-target (38 = [E]) https://docs.fivem.net/docs/game-references/controls/#controls
Config.KeyName = "E" -- 38 = E
Config.FloorBlip = { -- The blip will be disappear in front of crafting station if you set Config.UseTarget to false
Marker = 2, -- https://docs.fivem.net/docs/game-references/markers/#markers
Width = 0.3,
Height = 0.2,
Thickness = 0.3,
-- RGB (Recommended => Hex Color Picker)
rgbR = 255, -- Red
rgbG = 255, -- Green
rgbB = 255, -- Blue
rgbA = 255, -- (Opacity) (RGB Alpha, Max 255)
Rotate = 1, -- (1 = True (Rotate Marker), 0 = False (Don't Rotate Marker))
}
Config.UseLevelSystem = true -- If you want level system or not
Config.LevelSystem = { -- Level system config
MaxLevel = 30, -- Max Level (Don't Make Above 127)
XPMultiplier = 1.1, -- Each time you level up, it determines the amount of xp needed to reach to another level (Example: Level 1 = 100 XP, Level 2 = 220 XP, Level 3 = 330 XP...)
GiveXPWhenCraftFails = true -- Even if the player fails to craft the item, give experience to the player?
}
Config.CraftingStations = { -- All crafting stations config
weaponcrafting = {
Title = "Weapon Crafting Station", -- Crafting station title
CraftingStationID = "weaponcrafting", -- Crafting station id (Must be unique)
Coords = vector3(2195.64, 5594.35, 53.77), -- Crafting station coords
MapBlipStatus = true, -- If you want a blip will be disappear in map or not
MapBlip = { -- The blip will be disappear in minimap if you keep Config.MapBlipStatus as true
Sprite = 402, -- https://docs.fivem.net/docs/game-references/blips/#blips
Color = 3, -- https://docs.fivem.net/docs/game-references/blips/#blip-colors
Display = 4, -- 0 = Doesn't show up, ever, anywhere | 2 = Shows on both main map and minimap (Selectable on map) | 3 = Shows on main map only (Selectable on map) | 4 = Shows on main map only (Selectable on map) | 5 = Shows on minimap only | 8 = Shows on both main map and minimap (Not selectable on map)
Scale = 0.8, -- Blip scale
Text = "Crafting Station", -- Blip text
Vector3 = vector3(2195.64, 5594.35, 53.77) -- Crafting station coords
},
Target = {
Vector3 = vector3(2196.69, 5594.06, 53.76),
Vector3One = 1.35,
Vector3Two = 2.2,
Name = "weaponcrafting", -- Must be same as CraftingStationID
Heading = 254,
MinZ = 50.56,
MaxZ = 54.56,
FAIcon = "fa-solid fa-gun" -- https://fontawesome.com/icons
--[[
--Name: weaponcrafting | 2022-06-19T13:10:02Z
BoxZone:Create(vector3(2196.69, 5594.06, 53.76), 1.35, 2.2, {
name="weaponcrafting",
heading=254,
--debugPoly=true,
minZ=50.56,
maxZ=54.56
})
]]--
},
Crafts = {
{ -- 1
Item = "weapon_heavypistol", -- Item ID
Label = "Entreprise Arms Wide Body 1911", -- Item's label
Description = "A hefty firearm designed to be held in one hand (or attempted)", -- Item's description
Category = "weaponcrafting", -- Item's category, must be same as CraftingStationID
Icon = "../../assets/img/weapon/heavypistol.png", -- Item's icon
Quantity = 1, -- Quantity to be given when crafted
SuccessRate = 90, -- Probability of successful item production ( 90 = %90... )
Time = 300, -- Craft time as seconds
Level = 3, -- Level required to craft the item
XP = 40, -- Amount of xp to be awarded after item crafting
Jobs = { -- Jobs can craft this item (Leave empty if you want everyone to be able to craft)
},
Requirements = {
{
Label = "Heavy Pistol Blueprint",
ItemName = "bp_weapon_pistol",
Icon = "../../assets/img/blueprint/bp_weapon_pistol.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Weapon Barrel",
ItemName = "weapon_barrel",
Icon = "../../assets/img/material/weapon_barrel.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Weapon Trigger",
ItemName = "weapon_trigger",
Icon = "../../assets/img/material/weapon_trigger.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Weapon Grip",
ItemName = "weapon_grip",
Icon = "../../assets/img/material/weapon_grip.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Metal Spring",
ItemName = "metal_spring",
Icon = "../../assets/img/material/metal_spring.png",
Amount = 1,
RemoveOnCraft = true
}
}
},
{ -- 2
Item = "weapon_pistol", -- Item ID
Label = "Taurus PT92AF", -- Item's label
Description = "A small firearm designed to be held with one hand", -- Item's description
Category = "weaponcrafting", -- Item's category, must be same as CraftingStationID
Icon = "../../assets/img/weapon/pistol.png", -- Item's icon
Quantity = 1, -- Quantity to be given when crafted
SuccessRate = 95, -- Probability of successful item production ( 90 = %90... )
Time = 300, -- Craft time as seconds
Level = 2, -- Level required to craft the item
XP = 30, -- Amount of xp to be awarded after item crafting
Jobs = { -- Jobs can craft this item (Leave empty if you want everyone to be able to craft)
},
Requirements = {
{
Label = "Pistol Blueprint",
ItemName = "bp_weapon_pistol",
Icon = "../../assets/img/blueprint/bp_weapon_pistol.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Weapon Barrel",
ItemName = "weapon_barrel",
Icon = "../../assets/img/material/weapon_barrel.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Weapon Trigger",
ItemName = "weapon_trigger",
Icon = "../../assets/img/material/weapon_trigger.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Weapon Grip",
ItemName = "weapon_grip",
Icon = "../../assets/img/material/weapon_grip.png",
Amount = 1,
RemoveOnCraft = true
},
{
Label = "Metal Spring",
ItemName = "metal_spring",
Icon = "../../assets/img/material/metal_spring.png",
Amount = 1,
RemoveOnCraft = true
},
}
},
}
},
--------------------------------------------------------------------------------------------------------------------------------
medicalcrafting = {
Title = "Medical Crafting Station", -- Crafting station title
CraftingStationID = "medicalcrafting", -- Crafting station id (Must be unique)
Coords = vector3(3559.86, 3674.71, 28.12), -- Crafting station coords
MapBlipStatus = true, -- If you want a blip will be disappear in map or not
MapBlip = { -- The blip will be disappear in minimap if you keep Config.MapBlipStatus as true
Sprite = 402, -- https://docs.fivem.net/docs/game-references/blips/#blips
Color = 3, -- https://docs.fivem.net/docs/game-references/blips/#blip-colors
Display = 4, -- 0 = Doesn't show up, ever, anywhere | 2 = Shows on both main map and minimap (Selectable on map) | 3 = Shows on main map only (Selectable on map) | 4 = Shows on main map only (Selectable on map) | 5 = Shows on minimap only | 8 = Shows on both main map and minimap (Not selectable on map)
Scale = 0.8, -- Blip scale
Text = "Crafting Station", -- Blip text
Vector3 = vector3(3559.86, 3674.71, 28.12) -- Crafting station coords
},
Target = {
Vector3 = vector3(3559.72, 3673.39, 28.12),
Vector3One = 1.65,
Vector3Two = 2.45,
Name = "medicalcrafting", -- Must be same as CraftingStationID
Heading = 350,
MinZ = 24.72,
MaxZ = 28.72,
FAIcon = "fa-solid fa-kit-medical" -- https://fontawesome.com/icons
--[[
--Name: medicalcrafting | 2022-06-19T13:05:31Z
BoxZone:Create(vector3(3559.72, 3673.39, 28.12), 1.65, 2.45, {
name="medicalcrafting",
heading=350,
--debugPoly=true,
minZ=24.72,
maxZ=28.72
})
]]--
},
Crafts = {
{ -- 1
Item = "firstaid", -- Item ID
Label = "Medkit", -- Item's label
Description = "A small bag or case containing medical supplies", -- Item's description
Category = "medicalcrafting", -- Item's category, must be same as CraftingStationID
Icon = "../../assets/img/medical/medkit.png", -- Item's icon
Quantity = 1, -- Quantity to be given when crafted
SuccessRate = 100, -- Probability of successful item production ( 90 = %90... )
Time = 60, -- Craft time as seconds
Level = 1, -- Level required to craft the item
XP = 10, -- Amount of xp to be awarded after item crafting
Jobs = { -- Jobs can craft this item (Leave empty if you want everyone to be able to craft)
"ambulance"
},
Requirements = {
{
Label = "Bandage",
ItemName = "bandage",
Icon = "../../assets/img/material/bandage.png",
Amount = 5,
RemoveOnCraft = true
},
}
},
}
},
--------------------------------------------------------------------------------------------------------------------------------
misccrafting = {
Title = "Misc Crafting Station", -- Crafting station title
CraftingStationID = "misccrafting", -- Crafting station id (Must be unique)
Coords = vector3(1443.22, 6332.29, 23.98), -- Crafting station coords
MapBlipStatus = true, -- If you want a blip will be disappear in map or not
MapBlip = { -- The blip will be disappear in minimap if you keep Config.MapBlipStatus as true
Sprite = 402, -- https://docs.fivem.net/docs/game-references/blips/#blips
Color = 3, -- https://docs.fivem.net/docs/game-references/blips/#blip-colors
Display = 4, -- 0 = Doesn't show up, ever, anywhere | 2 = Shows on both main map and minimap (Selectable on map) | 3 = Shows on main map only (Selectable on map) | 4 = Shows on main map only (Selectable on map) | 5 = Shows on minimap only | 8 = Shows on both main map and minimap (Not selectable on map)
Scale = 0.8, -- Blip scale
Text = "Crafting Station", -- Blip text
Vector3 = vector3(1443.22, 6332.29, 23.98) -- Crafting station coords
},
Target = {
Vector3 = vector3(1443.31, 6331.18, 23.84),
Vector3One = 0.85,
Vector3Two = 2.6,
Name = "misccrafting", -- Must be same as CraftingStationID
Heading = 359,
MinZ = 20.84,
MaxZ = 24.84,
FAIcon = "fa-solid fa-arrow-down-a-z" -- https://fontawesome.com/icons
--[[
--Name: misccrafting | 2022-06-19T13:12:02Z
BoxZone:Create(vector3(1443.31, 6331.18, 23.84), 0.85, 2.6, {
name="misccrafting",
heading=359,
--debugPoly=true,
minZ=20.84,
maxZ=24.84
})
]]--
},
Crafts = {
{ -- 1
Item = "lockpick", -- Item ID
Label = "Lockpick", -- Item's label
Description = "A device that enables a burglar to open a lock", -- Item's description
Category = "misccrafting", -- Item's category, must be same as CraftingStationID
Icon = "../../assets/img/misc/lockpick.png", -- Item's icon
Quantity = 3, -- Quantity to be given when crafted
SuccessRate = 100, -- Probability of successful item production ( 90 = %90... )
Time = 20, -- Craft time as seconds
Level = 0, -- Level required to craft the item
XP = 6, -- Amount of xp to be awarded after item crafting
Jobs = { -- Jobs can craft this item (Leave empty if you want everyone to be able to craft)
},
Requirements = {
{
Label = "Iron",
ItemName = "iron",
Icon = "../../assets/img/material/iron.png",
Amount = 3,
RemoveOnCraft = true
},
}
},
}
},
}