mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
fix(types): optional params in getClosest* (#519)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
---@param coords vector3 The coords to check from.
|
---@param coords vector3 The coords to check from.
|
||||||
---@param maxDistance number The max distance to check.
|
---@param maxDistance? number The max distance to check.
|
||||||
---@return number? object
|
---@return number? object
|
||||||
---@return vector3? objectCoords
|
---@return vector3? objectCoords
|
||||||
function lib.getClosestObject(coords, maxDistance)
|
function lib.getClosestObject(coords, maxDistance)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---@param coords vector3 The coords to check from.
|
---@param coords vector3 The coords to check from.
|
||||||
---@param maxDistance number The max distance to check.
|
---@param maxDistance? number The max distance to check.
|
||||||
---@return number? ped
|
---@return number? ped
|
||||||
---@return vector3? pedCoords
|
---@return vector3? pedCoords
|
||||||
function lib.getClosestPed(coords, maxDistance)
|
function lib.getClosestPed(coords, maxDistance)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---@param coords vector3 The coords to check from.
|
---@param coords vector3 The coords to check from.
|
||||||
---@param maxDistance number The max distance to check.
|
---@param maxDistance? number The max distance to check.
|
||||||
---@param includePlayer boolean Whether or not to include the current player.
|
---@param includePlayer? boolean Whether or not to include the current player.
|
||||||
---@return number? playerId
|
---@return number? playerId
|
||||||
---@return number? playerPed
|
---@return number? playerPed
|
||||||
---@return vector3? playerCoords
|
---@return vector3? playerCoords
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---@param coords vector3 The coords to check from.
|
---@param coords vector3 The coords to check from.
|
||||||
---@param maxDistance number The max distance to check.
|
---@param maxDistance? number The max distance to check.
|
||||||
---@param includePlayerVehicle boolean Whether or not to include the player's current vehicle. Ignored on the server.
|
---@param includePlayerVehicle? boolean Whether or not to include the player's current vehicle. Ignored on the server.
|
||||||
---@return number? vehicle
|
---@return number? vehicle
|
||||||
---@return vector3? vehicleCoords
|
---@return vector3? vehicleCoords
|
||||||
function lib.getClosestVehicle(coords, maxDistance, includePlayerVehicle)
|
function lib.getClosestVehicle(coords, maxDistance, includePlayerVehicle)
|
||||||
|
|||||||
Reference in New Issue
Block a user