mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
Use PrimaryIdentifier
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user