Remove Config.PrimaryIdentifier

This commit is contained in:
Linden
2021-05-09 15:11:02 +10:00
committed by GitHub
parent b6b48319f0
commit 1afe919711
+3 -3
View File
@@ -15,7 +15,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
self.weight = weight
self.maxWeight = Config.MaxWeight
ExecuteCommand(('add_principal identifier.%s:%s group.%s'):format(Config.PrimaryIdentifier, self.identifier, self.group))
ExecuteCommand(('add_principal identifier.license:%s group.%s'):format(self.identifier, self.group))
self.triggerEvent = function(eventName, ...)
TriggerClientEvent(eventName, self.source, ...)
@@ -66,9 +66,9 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
end
self.setGroup = function(newGroup)
ExecuteCommand(('remove_principal identifier.%s:%s group.%s'):format(Config.PrimaryIdentifier, self.identifier, self.group))
ExecuteCommand(('remove_principal identifier.license:%s group.%s'):format(self.identifier, self.group))
self.group = newGroup
ExecuteCommand(('add_principal identifier.%s:%s group.%s'):format(Config.PrimaryIdentifier, self.identifier, self.group))
ExecuteCommand(('add_principal identifier.license:%s group.%s'):format(self.identifier, self.group))
end
self.getGroup = function()