diff --git a/gui_c.lua b/gui_c.lua index 3dab3710..f709632a 100644 --- a/gui_c.lua +++ b/gui_c.lua @@ -142,9 +142,11 @@ function GenerateMenu() -- this is a big ass function -- util stuff players = {} - local localplayers = GetActivePlayers() - for _,player in pairs(localplayers) do - table.insert( localplayers, GetPlayerServerId(player) ) + local localplayers = {} + for i = 0, 256 do + if NetworkIsPlayerActive( i ) then + table.insert( localplayers, GetPlayerServerId(i) ) + end end table.sort(localplayers) for i,thePlayer in ipairs(localplayers) do