Skip to content

Commit ed1ae9f

Browse files
Merge pull request #24 from Alivemonstor/main
Target Update :)
2 parents 2c79a9c + c21baa0 commit ed1ae9f

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

client/target.lua

+40-1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,23 @@ Citizen.CreateThread(function()
222222
},
223223
distance = 3.5
224224
})
225+
exports["qb-target"]:AddBoxZone("weedproces", vector3(2328.53, 2570.99, 46.61), 2.5, 2.5, {
226+
name = "weedproces",
227+
heading = 331.74,
228+
debugPoly = false,
229+
minZ = 45.99,
230+
maxZ = 47.59,
231+
}, {
232+
options = {
233+
{
234+
type = "client",
235+
event = "ps-drugprocessing:processWeed",
236+
icon = "fas fa-envira",
237+
label = "Process the Blaze",
238+
},
239+
},
240+
distance = 3.5
241+
})
225242
end)
226243

227244
Citizen.CreateThread(function()
@@ -241,7 +258,7 @@ Citizen.CreateThread(function()
241258
{
242259
type = "client",
243260
event = "ps-drugprocessing:pickHeroin",
244-
icon = "fas fa-seedling",
261+
icon = "fas fa-leaf",
245262
label = "Pickup Poppy Plants",
246263
},
247264
},
@@ -291,4 +308,26 @@ Citizen.CreateThread(function()
291308
},
292309
distance = 4.0
293310
})
311+
exports['qb-target']:AddTargetModel("mw_hydro_barrel", {
312+
options = {
313+
{
314+
type = "client",
315+
event = "ps-drugprocessing:client:hydrochloricacid",
316+
icon = "fas fa-radiation",
317+
label = "Pickup Hydrochloric Acid Barrels",
318+
},
319+
},
320+
distance = 4.0
321+
})
322+
exports['qb-target']:AddTargetModel("mw_chemical_barrel", {
323+
options = {
324+
{
325+
type = "client",
326+
event = "ps-drugprocessing:pickChemicals",
327+
icon = "fas fa-radiation",
328+
label = "Pickup Chem Barrels",
329+
},
330+
},
331+
distance = 4.0
332+
})
294333
end)

client/weed.lua

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ function ProcessWeed()
5151
isProcessing = false
5252
end
5353

54+
RegisterNetEvent("ps-drugprocessing:processWeed")
55+
AddEventHandler("ps-drugprocessing:processWeed",function()
56+
ProcessWeed()
57+
end)
58+
5459
RegisterNetEvent("ps-drugprocessing:pickWeed")
5560
AddEventHandler("ps-drugprocessing:pickWeed", function()
5661
Citizen.Wait(0)

0 commit comments

Comments
 (0)