Skip to content

Commit

Permalink
revert back to old looping method as new one caused the game to crash…
Browse files Browse the repository at this point in the history
…, thanks fivem
  • Loading branch information
Blumlaut committed Sep 10, 2019
1 parent dee8593 commit ce95d7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gui_c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce95d7a

Please sign in to comment.