Use PrimaryIdentifier

This commit is contained in:
Linden
2021-05-09 04:53:57 +10:00
committed by GitHub
parent 5df4e3e76d
commit 6232541cfb
+4 -4
View File
@@ -14,8 +14,8 @@ function onPlayerJoined(playerId)
local identifier
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
if string.match(v, 'license:') then
identifier = string.sub(v, 9)
if string.match(v, Config.PrimaryIdentifier) then
identifier = string.gsub(v, Config.PrimaryIdentifier..':', '')
break
end
end
@@ -65,8 +65,8 @@ AddEventHandler('playerConnecting', function(name, setCallback, deferrals)
Citizen.Wait(100)
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
if string.match(v, 'license:') then
identifier = string.sub(v, 9)
if string.match(v, Config.PrimaryIdentifier) then
identifier = string.gsub(v, Config.PrimaryIdentifier..':', '')
break
end
end