mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-19 18:58:33 +00:00
ipair
This commit is contained in:
1 parent
4551db736c
commit
a5b297e6f8
1 file changed
+1
-1
@@ -20,7 +20,7 @@ function NDCore.Functions.GetPlayersFromCoords(distance, coords)
|
||||
distance = distance or 5
|
||||
local closePlayers = {}
|
||||
local players = GetActivePlayers()
|
||||
for _, player in pairs(players) do
|
||||
for _, player in ipairs(players) do
|
||||
local target = GetPlayerPed(player)
|
||||
local targetCoords = GetEntityCoords(target)
|
||||
local targetdistance = #(targetCoords - coords)
|
||||
|
||||
Reference in new issue
Block a user