Fix typo in ox_lib docs (#36)

* getClosestPlayer Typo

* getNearbyPlayers Typo
This commit is contained in:
badfantomasss authored and GitHub committed 2022-08-08 10:32:36 +10:00
1 parent 49cf6d1d93
commit 1a5f71316e
2 files changed
+10 -10

No files matched your search

+6 -4
View File
@@ -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
```
+4 -6
View File
@@ -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
```