mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-19 07:16:03 +01:00
possible fix for not working on restart
This commit is contained in:
@@ -67,7 +67,8 @@ end)
|
|||||||
QBCore.Functions.CreateCallback('jim-payments:MakePlayerList', function(source, cb)
|
QBCore.Functions.CreateCallback('jim-payments:MakePlayerList', function(source, cb)
|
||||||
local onlineList = {}
|
local onlineList = {}
|
||||||
for k, v in pairs(QBCore.Functions.GetPlayers()) do
|
for k, v in pairs(QBCore.Functions.GetPlayers()) do
|
||||||
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..QBCore.Players[v].PlayerData.charinfo.firstname..' '..QBCore.Players[v].PlayerData.charinfo.lastname }
|
local P = QBCore.Functions.GetPlayer(v)
|
||||||
|
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..P.PlayerData.charinfo.firstname..' '..P.PlayerData.charinfo.lastname }
|
||||||
end
|
end
|
||||||
cb(onlineList)
|
cb(onlineList)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user