👤Identifier
Identifier resolution
Default behavior
Framework = {
IdentifierPriority = { "license2", "license", "fivem", "discord", "steam" }
}Override resolveIdentifier(source)
VarShop = VarShop or {}
VarShop.FrameworkOverrides = VarShop.FrameworkOverrides or {}
function VarShop.FrameworkOverrides.resolveIdentifier(source)
-- Use QBCore citizenid as the primary key
local Player = QBCore.Functions.GetPlayer(source)
if Player then
return Player.PlayerData.citizenid
end
return nil -- nil = fall back to the default resolver
endOverride resolveIdentifierInput(input)
Last updated