Other

Invalid identifier type for config value Config.Characters.IdentifierType

That issue is being returned whenever your Config.Characters.IdentifierType value differs from the original list of available identifiers. Mostly used are:

  • license

  • license2

  • steam

Make sure to check what identifier type your framework is using. You can find that for ESX in function ESX.GetIdentifier:

-- DUMP OF es_extended/server/functions.lua
function ESX.GetIdentifier(playerId)
    local fxDk = GetConvarInt("sv_fxdkMode", 0)
    if fxDk == 1 then
        return "ESX-DEBUG-LICENCE"
    end

    local identifier = GetPlayerIdentifierByType(playerId, "license") -- here is the identifier type you use
    return identifier and identifier:gsub("license:", "")
end

Or in qb-core call of function QBCore.Functions.GetIdentifier:

-- DUMP OF qb-core/server/functions.lua
function QBCore.Functions.SetPlayerBucket(source, bucket)
    if source and bucket then
        local plicense = QBCore.Functions.GetIdentifier(source, 'license') -- here is the identifier type you use
        Player(source).state:set('instance', bucket, true)
        SetPlayerRoutingBucket(source, bucket)
        QBCore.Player_Buckets[plicense] = { id = source, bucket = bucket }
        return true
    else
        return false
    end
end

Last updated