fix(client/zones): remove all zone references

Should resolve #191.
This commit is contained in:
Linden
2022-12-30 21:07:32 +11:00
parent 5a367f05dc
commit 012b68a3be

View File

@@ -192,19 +192,21 @@ local function getTriangles(polygon)
return triangles return triangles
end end
local function removeZone(self)
Zones[self.id] = nil
end
local insideZones = {} local insideZones = {}
local enteringZones = {} local enteringZones = {}
local exitingZones = {} local exitingZones = {}
local enteringSize = 0 local enteringSize = 0
local exitingSize = 0 local exitingSize = 0
local tick local tick
local glm_polygon_contains = glm.polygon.contains local glm_polygon_contains = glm.polygon.contains
local function removeZone(self)
Zones[self.id] = nil
insideZones[self.id] = nil
enteringZones[self.id] = nil
exitingZones[self.id] = nil
end
CreateThread(function() CreateThread(function()
while true do while true do
local coords = GetEntityCoords(cache.ped) local coords = GetEntityCoords(cache.ped)