mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-27 05:04:44 +00: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:
1 parent
107d812dc3
commit
26538b8148
19 files changed
+98
-61
No files matched your search
@@ -2,7 +2,7 @@
|
||||
---@param maxDistance number The max distance to check.
|
||||
---@param includePlayerVehicle boolean Whether or not to include the player's current vehicle.
|
||||
---@return number[]
|
||||
return function(coords, maxDistance, includePlayerVehicle)
|
||||
function lib.getNearbyVehicles(coords, maxDistance, includePlayerVehicle)
|
||||
local vehicles = GetGamePool('CVehicle')
|
||||
local nearby = {}
|
||||
local count = 0
|
||||
@@ -26,4 +26,6 @@ return function(coords, maxDistance, includePlayerVehicle)
|
||||
end
|
||||
|
||||
return nearby
|
||||
end
|
||||
end
|
||||
|
||||
return lib.getNearbyVehicles
|
||||
Reference in new issue
Block a user