Small banking changes

This commit is contained in:
Jim Shield
2022-07-28 19:35:35 +01:00
committed by GitHub
parent d71f3d29ed
commit 2c1f1e8573
5 changed files with 99 additions and 87 deletions

View File

@@ -219,9 +219,9 @@ end)
QBCore.Functions.CreateCallback('jim-payments:MakePlayerList', function(source, cb)
local onlineList = {}
for k, v in pairs(QBCore.Functions.GetPlayers()) do
for _, v in pairs(QBCore.Functions.GetPlayers()) do
local P = QBCore.Functions.GetPlayer(v)
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..P.PlayerData.charinfo.firstname..' '..P.PlayerData.charinfo.lastname }
end
cb(onlineList)
end)
end)