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,
|
||||
itemInfo = "",
|
||||
},
|
||||
['fruitpicker'] = {
|
||||
itemName = "Obstpflücker",
|
||||
itemStock = 150,
|
||||
itemPrice = 200,
|
||||
itemInfo = "",
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
|
|
|
@ -546,11 +546,16 @@ CreateThread(function()
|
|||
end)
|
||||
|
||||
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(v) do
|
||||
local name = 'WareHouse'.. k
|
||||
-- Korrigierte Vektorverarbeitung
|
||||
local coords = vector3(v.x, v.y, v.z)
|
||||
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,
|
||||
debugPoly = false,
|
||||
minZ = v.z - 1,
|
||||
|
@ -578,3 +583,4 @@ AddEventHandler('onResourceStop', function(resource)
|
|||
end)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue