Setting up identifier type (optional)

If you've changed the identifier type to something diffrent and it doesn't match default requirements you will need to apply those changes in Multicharacter too!

Headover to the /shared/config.lua and find:

Config.Characters.IdentifierType = "license"

How to find my identifier type?

ESX

Headover to the es_extended/server/functions.lua and find the function ESX.GetIdentifier. It should look similiar to this:

function ESX.GetIdentifier(playerId)
    local fxDk = GetConvarInt("sv_fxdkMode", 0)
    if fxDk == 1 then
        return "ESX-DEBUG-LICENCE"
    end

    playerId = tostring(playerId)

    local identifier = GetPlayerIdentifierByType(playerId, "license")
    return identifier and identifier:gsub("license:", "")
end

The proper license is located in that line:

local identifier = GetPlayerIdentifierByType(playerId, "license")

In our case it's "license" so it stays the same.

QBCore

Headover to the qb-core/server/functions.lua and find the function QBCore.Functions.GetIdentifier. It should look similiar to this:

function QBCore.Functions.GetIdentifier(source, idtype)
    if GetConvarInt('sv_fxdkMode', 0) == 1 then return 'license:fxdk' end
    return GetPlayerIdentifierByType(source, idtype or 'license')
end

The proper license is located in that line:

return GetPlayerIdentifierByType(source, idtype or 'license')

In our case it's "license" so it stays the same.

Last updated