fix: name is Name in TeamData

This commit is contained in:
Joshua Piper 2021-06-25 18:32:13 +01:00
parent 8e60e881fc
commit 810e80027c

View File

@ -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