ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
QBCoreserver

QBCore.Functions.GetIdentifier

QBCore server documentation with a FiveM Lua example.

Summary

Returns a specific identifier (license, steam, discord, etc.) for a player source in QBCore. Commonly used to get the stable license identifier.

Returns

string — the requested identifier.

Parameters

sourcenumberThe player's server ID.
idtypestringe.g. 'license'.

Example

local license = QBCore.Functions.GetIdentifier(src, 'license')

Common pitfalls

  • Prefer 'license' as your stable key — steam/discord may be missing depending on how the player launched.
  • Server-side only; never trust identifiers sent from the client.

Related functions

Related guides

FiveM scripts done right

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.

Browse Scripts →