Merge pull request #1199 from Arctos2win/patch-11

improve fetching identifier in es_extended ( same way as in multichar )
This commit is contained in:
Gellipapa
2023-09-03 19:12:08 +02:00
committed by GitHub
+3 -6
View File
@@ -287,12 +287,9 @@ function ESX.GetIdentifier(playerId)
if fxDk == 1 then
return "ESX-DEBUG-LICENCE"
end
for _, v in ipairs(GetPlayerIdentifiers(playerId)) do
if string.match(v, 'license:') then
local identifier = string.gsub(v, 'license:', '')
return identifier
end
end
local identifier = GetPlayerIdentifierByType(playerId, 'license')
return identifier and identifier:gsub('license:', '')
end
---@param model string|number