This commit is contained in:
Dark3581
2023-01-03 18:24:38 -08:00
committed by GitHub
parent 4551db736c
commit a5b297e6f8

View File

@@ -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)