mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +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:
@@ -3,7 +3,7 @@
|
||||
---@param includePlayerVehicle boolean Whether or not to include the player's current vehicle.
|
||||
---@return number? vehicle
|
||||
---@return vector3? vehicleCoords
|
||||
return function(coords, maxDistance, includePlayerVehicle)
|
||||
function lib.getClosestVehicle(coords, maxDistance, includePlayerVehicle)
|
||||
local vehicles = GetGamePool('CVehicle')
|
||||
local closestVehicle, closestCoords
|
||||
maxDistance = maxDistance or 2.0
|
||||
@@ -24,4 +24,6 @@ return function(coords, maxDistance, includePlayerVehicle)
|
||||
end
|
||||
|
||||
return closestVehicle, closestCoords
|
||||
end
|
||||
end
|
||||
|
||||
return lib.getClosestVehicle
|
||||
|
||||
Reference in New Issue
Block a user