Yes. I believe the method I created a method that reads the first part of the identifier and matches it to a type you pass as an argument could be a better solution?
function GetPlayerIdentifierFromType(type, source)
local identifiers = {}
local identifierCount = GetNumPlayerIdentifiers(source)
for a = 0, identifierCount do
table.insert(identifiers, GetPlayerIdentifier(source, a))
end
for b = 1, #identifiers do
if string.find(identifiers[b], type, 1) then
return identifiers[b]
end
end
return nil
end
--GetPlayerIdentifierFromType("license", playersource)
3 Likes