diff --git a/docs/ox_lib/GetClosestPlayer/Client.md b/docs/ox_lib/GetClosestPlayer/Client.md index 65c1ebc1..26f88915 100644 --- a/docs/ox_lib/GetClosestPlayer/Client.md +++ b/docs/ox_lib/GetClosestPlayer/Client.md @@ -1,11 +1,13 @@ -### lib.getNearbyPlayers +### lib.getClosestPlayer -Get the id, ped, and coords of all players within range of a set of coordinates. +Get the id, ped, and coords of the closest player to a set of coordinates. ```lua ---@param coords vector3 The coords to check from. ---@param maxDistance number The max distance to check. ---@param includePlayer boolean Whether or not to include the current player. ----@return number[] -function lib.getNearbyPlayers(coords, maxDistance, includePlayer) end +---@return number? playerId +---@return number? playerPed +---@return vector3? playerCoords +function lib.getClosestPlayer(coords, maxDistance, includePlayer) end ``` diff --git a/docs/ox_lib/GetNearbyPlayers/Client.md b/docs/ox_lib/GetNearbyPlayers/Client.md index 26f88915..65c1ebc1 100644 --- a/docs/ox_lib/GetNearbyPlayers/Client.md +++ b/docs/ox_lib/GetNearbyPlayers/Client.md @@ -1,13 +1,11 @@ -### lib.getClosestPlayer +### lib.getNearbyPlayers -Get the id, ped, and coords of the closest player to a set of coordinates. +Get the id, ped, and coords of all players within range of a set of coordinates. ```lua ---@param coords vector3 The coords to check from. ---@param maxDistance number The max distance to check. ---@param includePlayer boolean Whether or not to include the current player. ----@return number? playerId ----@return number? playerPed ----@return vector3? playerCoords -function lib.getClosestPlayer(coords, maxDistance, includePlayer) end +---@return number[] +function lib.getNearbyPlayers(coords, maxDistance, includePlayer) end ```