From 4642d91c97af0c3bfe2405b583833974738b4502 Mon Sep 17 00:00:00 2001 From: Solareon <769465+solareon@users.noreply.github.com> Date: Sat, 27 Jan 2024 23:42:12 +0100 Subject: [PATCH] fix: players are not vehicles (#333) --- bridge/qb/client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/qb/client/functions.lua b/bridge/qb/client/functions.lua index 7112f0519..70d43ccb8 100644 --- a/bridge/qb/client/functions.lua +++ b/bridge/qb/client/functions.lua @@ -166,7 +166,7 @@ functions.IsWearingGloves = qbx.isWearingGloves ---@deprecated use lib.getClosestPlayer from ox_lib functions.GetClosestPlayer = function(coords) - local playerId, _, playerCoords = lib.getClosestVehicle(coords) + local playerId, _, playerCoords = lib.getClosestPlayer(coords) local playerDistance = #(coords - playerCoords) return playerId, playerDistance end