diff --git a/server/server.lua b/server/server.lua index 398fbeb..10413e0 100644 --- a/server/server.lua +++ b/server/server.lua @@ -17,7 +17,7 @@ if isESX then local PlayersWithJob = FrameworkObj.GetExtendedPlayers("job", Config.Jobs[jobIndex]) for playerIndex = 1, #PlayersWithJob do local xPlayer = PlayersWithJob[playerIndex] - local PlayerData = exports.npwd:getPlayerData({source = src}) + local PlayerData = exports.npwd:getPlayerData({identifier = xPlayer.getIdentifier()}) PlayerList[#PlayerList + 1] = { name = xPlayer.getName(), job = xPlayer.job.name, @@ -52,4 +52,4 @@ if isQB then TriggerClientEvent('npwd:services:sendPlayers', src, playerList) end) -end \ No newline at end of file +end