mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
fix: group name is not string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user