mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-29 06:04:44 +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
|
distance = distance or 5
|
||||||
local closePlayers = {}
|
local closePlayers = {}
|
||||||
local players = GetActivePlayers()
|
local players = GetActivePlayers()
|
||||||
for _, player in pairs(players) do
|
for _, player in ipairs(players) do
|
||||||
local target = GetPlayerPed(player)
|
local target = GetPlayerPed(player)
|
||||||
local targetCoords = GetEntityCoords(target)
|
local targetCoords = GetEntityCoords(target)
|
||||||
local targetdistance = #(targetCoords - coords)
|
local targetdistance = #(targetCoords - coords)
|
||||||
|
|||||||
Reference in new issue
Block a user