mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 17:33:56 +00:00
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:
1 parent
99b146d7b9
commit
77ff8e977b
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user