- add weed prop allowance for MakeButter and MakeOil

This commit is contained in:
Mustache Dom committed 2025-10-09 02:53:40 -06:00
1 parent d41944d3e3
commit 2c1401f9a3
2 files changed
+19 -2

No files matched your search

+17
View File
@@ -150,4 +150,21 @@ for k, v in pairs (locations.WeedSalesman) do
} }
}) })
end 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
View File
@@ -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 = ""}, {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 = { 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 = { 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 = { WeedDry = {
{loc = vector3(1043.0, -3191.59, -38.39),}, {loc = vector3(1043.0, -3191.59, -38.39),},