mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-03 06:28:53 +00:00
Fix typo in ox_lib docs (#36)
* getClosestPlayer Typo * getNearbyPlayers Typo
This commit is contained in:
1 parent
49cf6d1d93
commit
1a5f71316e
2 files changed
+10
-10
No files matched your search
@@ -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
|
```lua
|
||||||
---@param coords vector3 The coords to check from.
|
---@param coords vector3 The coords to check from.
|
||||||
---@param maxDistance number The max distance to check.
|
---@param maxDistance number The max distance to check.
|
||||||
---@param includePlayer boolean Whether or not to include the current player.
|
---@param includePlayer boolean Whether or not to include the current player.
|
||||||
---@return number[]
|
---@return number? playerId
|
||||||
function lib.getNearbyPlayers(coords, maxDistance, includePlayer) end
|
---@return number? playerPed
|
||||||
|
---@return vector3? playerCoords
|
||||||
|
function lib.getClosestPlayer(coords, maxDistance, includePlayer) end
|
||||||
```
|
```
|
||||||
@@ -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
|
```lua
|
||||||
---@param coords vector3 The coords to check from.
|
---@param coords vector3 The coords to check from.
|
||||||
---@param maxDistance number The max distance to check.
|
---@param maxDistance number The max distance to check.
|
||||||
---@param includePlayer boolean Whether or not to include the current player.
|
---@param includePlayer boolean Whether or not to include the current player.
|
||||||
---@return number? playerId
|
---@return number[]
|
||||||
---@return number? playerPed
|
function lib.getNearbyPlayers(coords, maxDistance, includePlayer) end
|
||||||
---@return vector3? playerCoords
|
|
||||||
function lib.getClosestPlayer(coords, maxDistance, includePlayer) end
|
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user