#Place Weed inside ps-housing (qb-weed only)
72 messages · Page 1 of 1 (latest)
?
10-8
thanks
Just guessing this is correct? Looks like the line numbers changed a little bit with updates. https://gyazo.com/f66a180bfcfae7a55d584f603e0b330d
Looks alright
guess no one cares
NICE thank you bro
@hybrid jolt
❤️
The lines could be changed
You should PR that to ps-housing
A lot of ppl are still using qb-weed and i'm one of them
Headache free 
I asked that, but they didnt want that so i just kept it a snippet
Oh?
Yeah
I suggest scrolling up and removing your comment before you get warned to ...
does this work for v2?
trying
works but you need to add the snippet to other lines too
@gray badger is this fix still current for qb-weed?
Idk 😂
Still works
Even for MLO's
As i still have it

If u have an mlo
U can grow weird inside the box
siiick
works but you need to put the snippet to multiple lines
2 times.
can we use ps weed to grow weed inside the house or it-drugs
U got a pic for all the people asking ?😂
did u figure out how to grow inside shell houses
just search enterpropterty and leaveproperty and add the lines..
Does this work for loaf housing
nope
u guys using qb right?
using qb-inventory or ox?
Replace Property:EnterShell() with this one:
function Property:EnterShell()
self = self
local isMlo = self.propertyData.shell == 'mlo'
local isIpl = self.propertyData.apartment and Config.Apartments[self.propertyData.apartment]
self.shellData = Config.Shells[self.propertyData.shell]
if not isMlo or isIpl then
DoScreenFadeOut(250)
TriggerServerEvent("InteractSound_SV:PlayOnSource", "houses_door_open", 0.25)
Wait(250)
if isIpl and isIpl.zone then
self.mloData = {}
self.mloData.poly = lib.zones.poly({
points = isIpl.zone,
thickness = isIpl.thickness,
debug = Config.DebugMode,
})
local coords = isIpl.interior
self:RegisterDoorZone(coords)
SetEntityCoordsNoOffset(cache.ped, coords.x, coords.y, coords.z, false, false, true)
else
self:CreateShell()
end
self:LoadFurnitures()
end
TriggerEvent('qb-weed:client:getHousePlants', self.property_id)
self.inProperty = true
self:GiveMenus()
if not isMlo or isIpl then
DoScreenFadeIn(250)
end
end```
Replace Property:LeaveShell() with this one:
function Property:LeaveShell()
if not self.inProperty then return end
local isMlo = self.propertyData.shell == 'mlo'
local isIpl = self.propertyData.apartment and Config.Apartments[self.propertyData.apartment].interior
if not isMlo or isIpl then
DoScreenFadeOut(250)
TriggerServerEvent("InteractSound_SV:PlayOnSource", "houses_door_open", 0.25)
Wait(250)
local coords = self:GetDoorCoords()
SetEntityCoordsNoOffset(cache.ped, coords.x, coords.y, coords.z, false, false, true)
self:UnloadFurnitures()
self.propertyData.furnitures = {}
if not isIpl then
self.shell:DespawnShell()
self.shell = nil
else
local mloData = self.mloData
if mloData and mloData.poly then
mloData.poly:remove()
self.mloData = nil
end
end
end
TriggerServerEvent("ps-housing:server:leaveProperty", self.property_id)
if self.exitTarget then
Framework[Config.Target].RemoveTargetZone(self.exitTarget)
self.exitTarget = nil
end
TriggerEvent('qb-weed:client:leaveHouse')
self:RemoveMenus()
self.doorbellPool = {}
self.inProperty = false
if not isMlo or isIpl then
Wait(250)
DoScreenFadeIn(250)
end
end```
Replace Property:RegisterMlo() with this one:
function Property:RegisterMlo()
local data = lib.callback.await("ps-housing:cb:getMainMloDoor", false, self.property_id, 1)
if not data then return end
local coords = data.objCoords or data.coords or data.doors[1] and data.doors[1].coords or data.doors[1].objCoords
local zoneData = type(self.propertyData.zone_data) == 'string' and json.decode(self.propertyData.zone_data) or self.propertyData.zone_data
if not zoneData then return end
-- we creating point only if mlo is owned by someone
if self.propertyData.owner then
self.mloData = {}
self.mloData.point = lib.points.new({
coords = vec3(coords.x, coords.y, coords.z),
distance = 40,
onEnter = function()
self:LoadFurnitures()
TriggerEvent('qb-weed:client:getHousePlants', self.property_id)
end,
onExit = function()
self:UnloadFurnitures()
TriggerEvent('qb-weed:client:leaveHouse')
self.propertyData.furnitures = {}
end
})
end
if self.owner or self.has_access then
-- this only for who have access or owning the house
self.mloData = self.mloData or {}
self.mloData.poly = lib.zones.poly({
points = convertToVector(zoneData.points),
thickness = zoneData.thickness + 3,
debug = Config.DebugMode,
onEnter = function()
TriggerServerEvent("ps-housing:server:enterProperty", self.property_id)
end,
onExit = function()
self:LeaveShell()
end
})
end
return {
x = coords.x,
y = coords.y,
z = coords.z,
length = 2.0,
h = 100.0,
width = 2.0,
}
end```
Replace the code below:
self.propertyData.garden_data = {
poly = poly,
point = lib.points.new({
coords = vec3(coords[1].x, coords[1].y, coords[1].z),
distance = 40,
onEnter = function()
self:LoadFurnitures(poly)
end,
onExit = function()
self:UnloadFurnitures()
self.propertyData.furnitures = {}
end
})
}```
with this one:
```lua
self.propertyData.garden_data = {
poly = poly,
point = lib.points.new({
coords = vec3(coords[1].x, coords[1].y, coords[1].z),
distance = 40,
onEnter = function()
self:LoadFurnitures(poly)
TriggerEvent('qb-weed:client:getHousePlants', self.property_id)
end,
onExit = function()
self:UnloadFurnitures()
TriggerEvent('qb-weed:client:leaveHouse')
self.propertyData.furnitures = {}
end
})
}```
@stark raven @weary ledge
test it
where is this located so i can swap out
cl_property
on loaf or qb weed
ps-housing
what about loaf housing
i asked for loaf
noone cares about loaf
why would u ask someone if he got it fixed in a thread for ps-housing
okay then u shouldn't of commented i need help with loaf
okay u aint gotta be a pussy
bro ur serious?
i clearly stated does it work for loaf