Exports & commands
Server exports
Call these only from trusted server-side resources. Validate the caller and target; never expose grant or revoke operations directly to untrusted clients.
local identity = exports['ep-identify']:GetIdentity(playerSource)
local ok = exports['ep-identify']:GrantDriverCategory(playerSource, 'b')
local granted = exports['ep-identify']:GrantQualification(playerSource, 'ppl')
local revoked = exports['ep-identify']:RevokeDriverCategory(playerSource, 'b')
local removed = exports['ep-identify']:RevokeQualification(playerSource, 'ppl')
exports['ep-identify']:IssueCard(playerSource, 'identity')GetIdentity returns the saved identity or nil. Qualification exports return success/failure according to the configured storage provider. IssueCard requires a configured card type. useCard is the ox_inventory callback, not a general grant API.
Registration event
AddEventHandler('nl_identity:server:registered', function(playerSource, owner, identity, framework)
-- Your trusted server-side integration
end)Player and administrator commands
/identity opens registration for unregistered players. Config.Command changes its name. /resetidentity [server-id] removes the target registration and prompts registration again. Config.AdminResetCommand changes its name. Console access is allowed; players need nlidentity.admin ACE.
add_ace group.admin nlidentity.admin allowOnly grant this permission to trusted administrators. The reset does not delete all documents or qualifications.