mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
add extra check for if playerdata exists or not
This commit is contained in:
@@ -30,7 +30,9 @@ onResourceStart(function()
|
||||
for _, v in pairs(GetPlayers()) do
|
||||
if v ~= nil or type(v) ~= "number" then
|
||||
local Player = getPlayer(v)
|
||||
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..Player.name }
|
||||
if Player.name then
|
||||
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..Player.name }
|
||||
end
|
||||
Wait(10)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user