diff --git a/bridge/qb/client.lua b/bridge/qb/client.lua index 22504be..100e629 100644 --- a/bridge/qb/client.lua +++ b/bridge/qb/client.lua @@ -13,7 +13,7 @@ end function GetPlayersInArea(coords, radius) local coords = coords or GetEntityCoords(PlayerPedId()) local radius = radius or 3.0 - local list = ESX.Game.GetPlayersFromCoords(coords, radius) + local list = QBCore.Functions.GetPlayersFromCoords(coords, radius) local players = {} for _, player in pairs(list) do if player ~= PlayerId() then @@ -71,4 +71,4 @@ CreateThread(function() Inventory.Items = data.items Inventory.Ready = true end) -end) \ No newline at end of file +end)