fix: group name is not string

This commit is contained in:
Andyyy7666
2022-12-13 17:28:01 +01:00
parent 3b393af7ef
commit ca9d198ce8

View File

@@ -17,7 +17,7 @@ function NDCore.Functions.GetPlayers(getBy, value)
if playerInfo.data.groups then
local valueGroup = value:lower()
for group, _ in pairs(playerInfo.data.groups) do
if group.lower() == valueGroup then
if group and group:lower() == valueGroup then
players[player] = playerInfo
end
end