mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Fixing getNearbyPlayers function
By using the function you see the following: source = GetPlayerPed(source) -- So source is now the playerPed source = GetEntityCoords(GetPlayerPed(source)) -- The source is getting new defined by calling the entity coords from the playerPed and then the playerPed once again.
This commit is contained in:
@@ -15,7 +15,7 @@ local function getNearbyPlayers(source, closest, distance, ignore)
|
||||
error("Received invalid first argument (source); should be playerId or vector3 coordinates")
|
||||
end
|
||||
|
||||
source = GetEntityCoords(GetPlayerPed(source))
|
||||
source = GetEntityCoords(source)
|
||||
end
|
||||
|
||||
for _, xPlayer in pairs(ESX.Players) do
|
||||
|
||||
Reference in New Issue
Block a user