Other
Invalid identifier type for config value Config.Characters.IdentifierType
-- 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-- 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
endLast updated