mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-29 14:04:44 +00:00
fix: group name is not string
This commit is contained in:
1 parent
3b393af7ef
commit
ca9d198ce8
1 file changed
+1
-1
@@ -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