From 1afe919711be6385dfbb575151deb5557aa81804 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 9 May 2021 15:11:02 +1000 Subject: [PATCH] Remove Config.PrimaryIdentifier --- server/classes/player.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/classes/player.lua b/server/classes/player.lua index 23863447..64d6c1f9 100644 --- a/server/classes/player.lua +++ b/server/classes/player.lua @@ -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()