- add weed prop allowance for MakeButter and MakeOil
This commit is contained in:
1 parent
d41944d3e3
commit
2c1401f9a3
2 files changed
+19
-2
No files matched your search
@@ -150,4 +150,21 @@ for k, v in pairs (locations.WeedSalesman) do
|
||||
}
|
||||
})
|
||||
end
|
||||
local props = {}
|
||||
|
||||
for locationKey, locationData in pairs (locations.MakeButter) do
|
||||
if locationData.prop then
|
||||
ps.requestModel(locationData.prop)
|
||||
props[#props+1] = CreateObject(locationData.prop, locationData.loc.x, locationData.loc.y, locationData.loc.z - 1.0, false, false, false)
|
||||
FreezeEntityPosition(props[#props], true)
|
||||
SetEntityHeading(props[#props], locationData.loc.w)
|
||||
end
|
||||
end
|
||||
for locationKey, locationData in pairs (locations.MakeOil) do
|
||||
if locationData.prop then
|
||||
ps.requestModel(locationData.prop)
|
||||
props[#props+1] = CreateObject(locationData.prop, locationData.loc.x, locationData.loc.y, locationData.loc.z - 1.0, false, false, false)
|
||||
FreezeEntityPosition(props[#props], true)
|
||||
SetEntityHeading(props[#props], locationData.loc.w)
|
||||
end
|
||||
end
|
||||
+2
-2
@@ -3,10 +3,10 @@ local weedLocs = {
|
||||
{inside = vector3(1066.31, -3183.36, -39.16), outside = vector3(244.74, 374.54, 105.74), l = 1.0, w = 1.0, rot = 45.0, gang = ""},
|
||||
},
|
||||
MakeButter = {
|
||||
{loc = vector3(1045.48, -3198.49, -38.22), checks = {}},
|
||||
{loc = vector4(1045.43, -3198.75, -38.15, 270.0), prop = 'prop_cooker_03', checks = {}},
|
||||
},
|
||||
MakeOil = {
|
||||
{loc = vector3(1038.90, -3198.66, -38.17), checks = {}},
|
||||
{loc = vector4(1038.8, -3198.68, -38.17, 90.0), prop = 'prop_cooker_03', checks = {}},
|
||||
},
|
||||
WeedDry = {
|
||||
{loc = vector3(1043.0, -3191.59, -38.39),},
|
||||
|
||||
Reference in new issue
Block a user