mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
feat(imports): getNearbyObjects and getClosestObject
Also fixed the return params types for players and vehicles imports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---@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[]
|
||||
---@return table players
|
||||
function lib.getNearbyPlayers(coords, maxDistance, includePlayer)
|
||||
local players = GetActivePlayers()
|
||||
local nearby = {}
|
||||
|
||||
Reference in New Issue
Block a user