Skip to content

Commit

Permalink
Update Boucle (OneSync)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawZze committed Nov 21, 2019
1 parent 21b779d commit 55fc5dc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/[esx]/[non-esx]/CarryPeople/cl_carry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ end)
function GetPlayers()
local players = {}

for i = 0, 255 do
for i = 0, 256 do
if NetworkIsPlayerActive(i) then
table.insert(players, i)
end
Expand Down
2 changes: 1 addition & 1 deletion resources/[esx]/[non-esx]/PiggyBack/cl_piggyback.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ end)
function GetPlayers()
local players = {}

for i = 0, 255 do
for i = 0, 256 do
if NetworkIsPlayerActive(i) then
table.insert(players, i)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function GetPlayersPed()

local players = {}
local playerPed = GetPlayerPed()
for i = 0, 32, 1 do
for i = 0, 256, 1 do
local ped = GetPlayerPed(i)
if DoesEntityExist(ped) and id ~= playerPed then
table.insert(players, i)
Expand Down
2 changes: 1 addition & 1 deletion resources/[gameplay]/playernames/playernames_cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function updatePlayerNames()
local localCoords = GetEntityCoords(PlayerPedId())

-- for each valid player index
for i = 0, 255 do
for i = 0, 256 do
-- if the player exists
if NetworkIsPlayerActive(i) and i ~= PlayerId() then
-- get their ped
Expand Down
2 changes: 1 addition & 1 deletion resources/[system]/scoreboard/scoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end)
function GetPlayers()
local players = {}

for i = 0, 31 do
for i = 0, 256 do
if NetworkIsPlayerActive(i) then
table.insert(players, i)
end
Expand Down

1 comment on commit 55fc5dc

@iSentrie
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for i = 0 , 256 do is wrong
for i = 0 , 255 do is correct

Please sign in to comment.