condense locales
This commit is contained in:
1 parent
fc8a623067
commit
c752baffda
22 files changed
+228
-131
No files matched your search
+6
-8
@@ -17,14 +17,12 @@ local function getNearby(src, distance)
|
||||
local players = Bridge.Framework.GetPlayers()
|
||||
local nearPlayers = {}
|
||||
for index, sources in pairs(players) do
|
||||
--if sources ~= src then
|
||||
local target = GetEntityCoords(GetPlayerPed(sources))
|
||||
local you = GetEntityCoords(GetPlayerPed(src))
|
||||
local distanceBetween = #(you - target)
|
||||
if distanceBetween <= distance then
|
||||
table.insert(nearPlayers, {label = Bridge.Framework.GetPlayerName(sources), value = sources})
|
||||
end
|
||||
--end
|
||||
local target = GetEntityCoords(GetPlayerPed(sources))
|
||||
local you = GetEntityCoords(GetPlayerPed(src))
|
||||
local distanceBetween = #(you - target)
|
||||
if distanceBetween <= distance then
|
||||
table.insert(nearPlayers, {label = Bridge.Framework.GetPlayerName(sources), value = sources})
|
||||
end
|
||||
end
|
||||
return nearPlayers
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user