Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit d0bb6e4

Browse files
authored
Merge pull request #256 from y0p4/main
Fix when stop script remove ox_doors
2 parents c984e7d + 75b9311 commit d0bb6e4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/cl_property.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ function Property:RemoveBlip()
707707
self.blip = nil
708708
end
709709

710-
function Property:RemoveProperty()
710+
function Property:RemoveProperty(doors)
711711
if Config.Target == "ox" then
712712
Framework[Config.Target].RemoveTargetZone(self.entranceTarget)
713713
else
@@ -738,7 +738,7 @@ function Property:RemoveProperty()
738738
self:RemoveBlip()
739739
self:LeaveShell()
740740
self:UnregisterGarageZone()
741-
TriggerEvent('ps-housing:client:DeleteOxDoors',self.property_id)
741+
if doors then TriggerEvent('ps-housing:client:DeleteOxDoors', self.property_id) end
742742
--@@ comeback to this
743743
-- Think it works now
744744
if self.propertyData.apartment then

client/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RegisterNetEvent('ps-housing:client:removeProperty', function (property_id)
1111
local property = Property.Get(property_id)
1212

1313
if property then
14-
property:RemoveProperty()
14+
property:RemoveProperty(true)
1515
end
1616

1717
PropertiesTable[property_id] = nil

0 commit comments

Comments
 (0)