From 1a5f71316ee660354584c0506af26ad3890530a0 Mon Sep 17 00:00:00 2001 From: badfantomasss <103591532+badfantomasss@users.noreply.github.com> Date: Mon, 8 Aug 2022 02:32:36 +0200 Subject: [PATCH] Fix typo in ox_lib docs (#36) * getClosestPlayer Typo * getNearbyPlayers Typo --- docs/ox_lib/GetClosestPlayer/Client.md | 10 ++++++---- docs/ox_lib/GetNearbyPlayers/Client.md | 10 ++++------ 2 files changed, 10 insertions(+), 10 deletions(-) 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 ```