feat(client/zones): set cache.coords

People keep asking for coords to be added to cache, but it be problematic
to spam the events system every tick with that information.
If zones is loaded, we can set cache locally without relying on events.
This commit is contained in:
Linden
2022-09-11 11:06:38 +10:00
parent 99b146d7b9
commit 77ff8e977b

View File

@@ -223,8 +223,10 @@ local tick
CreateThread(function()
while true do
local coords = GetEntityCoords(cache.ped)
table.wipe(inside)
local coords = GetEntityCoords(cache.ped)
cache.coords = coords
insideCount = 0
for _, zone in pairs(Zones) do