improve fetching identifier in es_extended ( same way as in multichar )

This commit is contained in:
Arctos2win
2023-09-03 11:20:57 +02:00
committed by GitHub
parent ccf307d20b
commit 45c4b66608
+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