mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
refactor(imports): assign modules directly to lib namespace
Mostly a change for improved intellisense with sumneko lua. Includes some type fixes and deprecation notices.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
---@return number? playerId
|
||||
---@return number? playerPed
|
||||
---@return vector3? playerCoords
|
||||
return function(coords, maxDistance, includePlayer)
|
||||
function lib.getClosestPlayer(coords, maxDistance, includePlayer)
|
||||
local players = GetActivePlayers()
|
||||
local closestId, closestPed, closestCoords
|
||||
maxDistance = maxDistance or 2.0
|
||||
@@ -27,4 +27,6 @@ return function(coords, maxDistance, includePlayer)
|
||||
end
|
||||
|
||||
return closestId, closestPed, closestCoords
|
||||
end
|
||||
end
|
||||
|
||||
return lib.getClosestPlayer
|
||||
|
||||
Reference in New Issue
Block a user