Skip to content

Commit

Permalink
Update client.lua
Browse files Browse the repository at this point in the history
Fixed issue with QB-Core Bridge where the list was looking for a ESX variable and  not a QB-Core Variable
  • Loading branch information
mrdigital0 authored May 26, 2023
1 parent 25e7353 commit 56a33a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/qb/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -71,4 +71,4 @@ CreateThread(function()
Inventory.Items = data.items
Inventory.Ready = true
end)
end)
end)

0 comments on commit 56a33a4

Please sign in to comment.