fix(zones): filter grid entries for zones

This commit is contained in:
Linden
2025-03-10 14:28:29 +11:00
parent 29f207edf9
commit caa9ed1d97

View File

@@ -125,7 +125,7 @@ CreateThread(function()
while true do while true do
local coords = GetEntityCoords(cache.ped) local coords = GetEntityCoords(cache.ped)
local zones = lib.grid.getNearbyEntries(coords) --[[@as CZone[] ]] local zones = lib.grid.getNearbyEntries(coords, function(entry) return entry.remove == removeZone end) --[[@as CZone[] ]]
local cellX, cellY = lib.grid.getCellPosition(coords) local cellX, cellY = lib.grid.getCellPosition(coords)
cache.coords = coords cache.coords = coords