From 5555cd66626aa720b47fce60227f3ef697ebeb9a Mon Sep 17 00:00:00 2001 From: GhzGarage Date: Sat, 25 Sep 2021 18:06:52 -0500 Subject: [PATCH] feat(client/functions.lua): Distance Added second return parameter which contains distance --- client/functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 6f02685..4194658 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -155,7 +155,7 @@ function QBCore.Functions.GetClosestVehicle() closestDistance = distance end end - return closestVehicle + return closestVehicle, closestDistance end function QBCore.Functions.GetClosestObject() @@ -172,7 +172,7 @@ function QBCore.Functions.GetClosestObject() closestDistance = distance end end - return closestObject + return closestObject, closestDistance end function QBCore.Functions.GetClosestPed() @@ -190,7 +190,7 @@ function QBCore.Functions.GetClosestPed() closestDistance = distance end end - return closestPed + return closestPed, closestDistance end -- Vehicle