Skip to content

Commit

Permalink
fix: esx_scoreboard\client\main.lua unused loop variable k
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 16, 2024
1 parent 7adc3a5 commit fdac063
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function UpdatePlayerTable(connectedPlayers)
local formattedPlayerList, num = {}, 1
local players = 0

for k, v in pairs(connectedPlayers) do
for _, v in pairs(connectedPlayers) do
if num == 1 then
table.insert(formattedPlayerList, ("<tr><td>%s</td><td>%s</td><td>%s</td>"):format(v.name, v.id, v.ping))
num = 2
Expand Down Expand Up @@ -170,6 +170,7 @@ Citizen.CreateThread(function()
end)

-- Close scoreboard when game is paused
local IsPaused
Citizen.CreateThread(function()
while true do
Citizen.Wait(300)
Expand Down

0 comments on commit fdac063

Please sign in to comment.