mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01: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:
@@ -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