Skip to content

Commit b904033

Browse files
committed
Only iterate through actual players
SteamID and AccountID for bots is NULL and nil on client, why???
1 parent 0663c98 commit b904033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/luadev/luadev_sh.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ end
220220
if not plyid or not isstring(plyid) then return end
221221

222222
local cl
223-
for k,v in pairs(player.GetAll()) do
223+
for k,v in pairs(player.GetHumans()) do
224224
if v:SteamID()==plyid or tostring(v:AccountID())==plyid or tostring(v:UserID())==plyid then
225225
cl=v
226226
break

0 commit comments

Comments
 (0)