mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-11 00:33:56 +00:00
1 parent
5a367f05dc
commit
012b68a3be
1 file changed
+7
-5
@@ -192,19 +192,21 @@ local function getTriangles(polygon)
|
||||
return triangles
|
||||
end
|
||||
|
||||
local function removeZone(self)
|
||||
Zones[self.id] = nil
|
||||
end
|
||||
|
||||
local insideZones = {}
|
||||
local enteringZones = {}
|
||||
local exitingZones = {}
|
||||
local enteringSize = 0
|
||||
local exitingSize = 0
|
||||
local tick
|
||||
|
||||
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()
|
||||
while true do
|
||||
local coords = GetEntityCoords(cache.ped)
|
||||
|
||||
Reference in new issue
Block a user