- 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
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