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:
@@ -44,7 +44,7 @@ if Config.Banks.enable then
|
||||
icon = "fas fa-receipt", label = locale("target", "cashin_gang"), gang = gangroles,
|
||||
}
|
||||
end
|
||||
jsonPrint(options)
|
||||
|
||||
createCircleTarget(
|
||||
{ name, vec3(v[i].x, v[i].y, v[i].z+0.2), 2.0, { name = name, debugPoly = debugMode, useZ = true, }, }, options, 2.5)
|
||||
if Config.Banks.showBlips then
|
||||
|
||||
@@ -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