diff --git a/lua/ulib/shared/player.lua b/lua/ulib/shared/player.lua index 471cc1c..177d6e2 100644 --- a/lua/ulib/shared/player.lua +++ b/lua/ulib/shared/player.lua @@ -223,7 +223,7 @@ function ULib.getUsers( target, enable_keywords, ply ) -- This can't be ipairs, as it's indexed by ID, starts at 0 and may not be sequential. for teamId, teamData in pairs( teams ) do - if teamData.name == teamNameOrId then + if teamData.Name == teamNameOrId then for _, ply in ipairs( team.GetPlayers( teamId )) do table.insert( tmpTargets, ply ) end