mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
new ox_lib imports
This commit is contained in:
1 parent
95c905b7b2
commit
49cf6d1d93
4 files changed
+39
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
### lib.getClosestPlayer
|
||||
|
||||
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? playerId
|
||||
---@return number? playerPed
|
||||
---@return vector3? playerCoords
|
||||
function lib.getClosestPlayer(coords, maxDistance, includePlayer) end
|
||||
```
|
||||
Reference in new issue
Block a user