mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user