forked from Simnation/Main
1
This commit is contained in:
parent
636d541eaa
commit
2699891a94
2 changed files with 13 additions and 1 deletions
|
@ -723,6 +723,12 @@ CodeStudio.Products = {
|
||||||
itemPrice = 100,
|
itemPrice = 100,
|
||||||
itemInfo = "",
|
itemInfo = "",
|
||||||
},
|
},
|
||||||
|
['fruitpicker'] = {
|
||||||
|
itemName = "Obstpflücker",
|
||||||
|
itemStock = 150,
|
||||||
|
itemPrice = 200,
|
||||||
|
itemInfo = "",
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -546,11 +546,16 @@ CreateThread(function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
|
-- Warte kurz, um sicherzustellen, dass qb-target geladen ist
|
||||||
|
Wait(1000)
|
||||||
|
|
||||||
for k,v in pairs(Config.WareHouses) do
|
for k,v in pairs(Config.WareHouses) do
|
||||||
for k,v in pairs(v) do
|
for k,v in pairs(v) do
|
||||||
local name = 'WareHouse'.. k
|
local name = 'WareHouse'.. k
|
||||||
|
-- Korrigierte Vektorverarbeitung
|
||||||
|
local coords = vector3(v.x, v.y, v.z)
|
||||||
Targets[name] =
|
Targets[name] =
|
||||||
exports['qb-target']:AddBoxZone(name, v.xyz, 2.0, 2.0, {
|
exports['qb-target']:AddBoxZone(name, coords, 2.0, 2.0, {
|
||||||
heading = v.w,
|
heading = v.w,
|
||||||
debugPoly = false,
|
debugPoly = false,
|
||||||
minZ = v.z - 1,
|
minZ = v.z - 1,
|
||||||
|
@ -578,3 +583,4 @@ AddEventHandler('onResourceStop', function(resource)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue