mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 04:01:24 +00:00
fix(server/events/player): Position
Position was not updating on player dropped but was on player save event.
This commit is contained in:
@@ -135,7 +135,7 @@ function QBCore.Functions.GetPlayersFromCoords(coords, distance)
|
||||
local targetCoords = GetEntityCoords(target)
|
||||
local targetdistance = #(targetCoords - coords)
|
||||
if targetdistance <= distance then
|
||||
closePlayers[#closePlayers+1] = player
|
||||
closePlayers[#closePlayers+1] = player
|
||||
end
|
||||
end
|
||||
return closePlayers
|
||||
|
||||
Reference in New Issue
Block a user