Runtime Item Registration
Trusted server resources can register an item definition without editing shared/items.lua.
local ok, def = exports.nord_inventory:RegisterItem('service_token', {
label = 'Service Token',
description = 'Issued by another resource',
weight = 5,
stack = true,
close = false,
category = 'document',
schema = 'generic',
image = 'service_token.png',
metadataDefaults = {
issuer = '',
issuedAt = 0
}
})
Important precedence rule
A runtime item cannot overwrite an authoritative database row with the same name. RegisterItem returns a failure such as database_authoritative in that case.
This protects Admin Studio/database definitions from being silently replaced by a third-party resource on restart.
Runtime lifetime
RegisterItem is transient. If you need a definition to be permanently managed by Nord Inventory, create/import it into the database-backed registry or maintain it in the reference Lua files.