⚠️⚠️BREAKING COMMIT⚠️⚠️: Merged dupe client functions code

This changes arguments on the following functions:
- ESX.Game.GetClosestObject()
- ESX.Game.GetPeds(), no more arg for ignoreList
- ESX.Game.GetClosestPed(), no longer a ignore list, instead a whitelist
This commit is contained in:
ElPumpo
2020-04-14 13:08:10 +02:00
parent e772031094
commit 5562712975
2 changed files with 26 additions and 181 deletions
+3 -3
View File
@@ -45,11 +45,11 @@ local function EnumerateEntities(initFunc, moveFunc, disposeFunc)
local enum = {handle = iter, destructor = disposeFunc}
setmetatable(enum, entityEnumerator)
local next = true
repeat
coroutine.yield(id)
next, id = moveFunc(iter)
coroutine.yield(id)
next, id = moveFunc(iter)
until not next
enum.destructor, enum.handle = nil, nil