mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 22:36: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
|
if playerInfo.data.groups then
|
||||||
local valueGroup = value:lower()
|
local valueGroup = value:lower()
|
||||||
for group, _ in pairs(playerInfo.data.groups) do
|
for group, _ in pairs(playerInfo.data.groups) do
|
||||||
if group.lower() == valueGroup then
|
if group and group:lower() == valueGroup then
|
||||||
players[player] = playerInfo
|
players[player] = playerInfo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user