mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix: if statement was the wrong way around
This commit is contained in:
@@ -32,7 +32,8 @@ local function getNearbyPlayers(source, closest, distance, ignore)
|
||||
end
|
||||
else
|
||||
local dist = #(xPlayer.source - coords)
|
||||
result = {id = xPlayer.source, ped = NetworkGetNetworkIdFromEntity(entity), coords = coords, dist = dist} if dist <= (result.dist or distance) then
|
||||
if dist <= (result.dist or distance) then
|
||||
result = {id = xPlayer.source, ped = NetworkGetNetworkIdFromEntity(entity), coords = coords, dist = dist}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user