mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Use PrimaryIdentifier
This commit is contained in:
+4
-4
@@ -14,8 +14,8 @@ function onPlayerJoined(playerId)
|
|||||||
local identifier
|
local identifier
|
||||||
|
|
||||||
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
|
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
|
||||||
if string.match(v, 'license:') then
|
if string.match(v, Config.PrimaryIdentifier) then
|
||||||
identifier = string.sub(v, 9)
|
identifier = string.gsub(v, Config.PrimaryIdentifier..':', '')
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -65,8 +65,8 @@ AddEventHandler('playerConnecting', function(name, setCallback, deferrals)
|
|||||||
Citizen.Wait(100)
|
Citizen.Wait(100)
|
||||||
|
|
||||||
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
|
for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
|
||||||
if string.match(v, 'license:') then
|
if string.match(v, Config.PrimaryIdentifier) then
|
||||||
identifier = string.sub(v, 9)
|
identifier = string.gsub(v, Config.PrimaryIdentifier..':', '')
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user