refactor(getCore/client): clean up hasGroup method and return values

This commit is contained in:
Linden
2022-05-12 07:44:29 +10:00
parent 4575b5e02a
commit 139ae0701b
3 changed files with 50 additions and 43 deletions

View File

@@ -158,6 +158,8 @@ local cache = setmetatable({}, {
self.serverId = GetPlayerServerId(self.playerId)
end
self.resource = GetCurrentResourceName()
if ox.groups then
self.groups = setmetatable({}, {
__index = function(groups, index)