Skip to content

Commit

Permalink
fix: players are not vehicles (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Jan 27, 2024
1 parent f72ff47 commit 4642d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/qb/client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4642d91

Please sign in to comment.