File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use_experimental_fxv2_oal 'yes'
55
66name ' ac_scoreboard'
77author ' AC Scripts'
8- version ' 2.2.0 '
8+ version ' 2.2.1 '
99description ' A framework-standalone scoreboard UI for FiveM.'
1010repository ' https://github.com/acscripts/ac_scoreboard'
1111
Original file line number Diff line number Diff line change @@ -2,18 +2,17 @@ local Players = {}
22
33CreateThread (function ()
44 for _ , playerId in ipairs (GetPlayers ()) do
5- Players [playerId ] = GetPlayerName (playerId )
5+ Players [tonumber ( playerId ) ] = GetPlayerName (playerId )
66 end
77end )
88
99
1010AddEventHandler (' playerJoining' , function ()
11- local playerId = tostring (source )
12- Players [playerId ] = GetPlayerName (playerId )
11+ Players [source ] = GetPlayerName (source )
1312end )
1413
1514AddEventHandler (' playerDropped' , function ()
16- Players [tostring ( source ) ] = nil
15+ Players [source ] = nil
1716end )
1817
1918
Original file line number Diff line number Diff line change 1919 copied: ' mdi:clipboard-check' ,
2020 };
2121
22+ // preload icons to prevent possible "flash" of empty icon space before it loads
23+ // since it's visible only on hover, it's quite noticeable
2224 loadIcons ([copyIcons .copy , copyIcons .copied ]);
2325 </script >
2426
You can’t perform that action at this time.
0 commit comments