mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 10:48:52 +00:00
improve fetching identifier in es_extended ( same way as in multichar )
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user