Operations API · v2.0.0
Operations API · v2.0.0
Applies to: Nord Inventory v2.0.0
Four server exports are added by the Operations module. They are intended for trusted server resources/tooling.
GetItemPolicy
local policy = exports.nord_inventory:GetItemPolicy('police_evidence')
Returns the resolved movement-policy data for the canonical item name.
CreateInventorySnapshot
local ok, snapshotId, canonicalKey = exports.nord_inventory:CreateInventorySnapshot(invKey, 'manual_tool')
Creates a snapshot using live runtime state when the target player is connected and persisted state when offline. The invoking resource is recorded as the creator.
GetInventoryLedger
local rows = exports.nord_inventory:GetInventoryLedger({
search = 'weapon_pistol',
limit = 50
})
Returns bounded transaction/forensics results. Treat this as a read/query API, not a substitute for inventory mutations.
FindItemInstances
local rows = exports.nord_inventory:FindItemInstances({
item = 'weapon_pistol',
serial = 'SERIAL-HERE'
})
Searches persisted and live cached inventory state using the same overlay rules as Operations so connected inventories are not double-counted from stale SQL.
Security
Do not expose these exports 1:1 through unrestricted client net events. Snapshot creation and forensic data should remain server-side/trusted. Admin Studio actions still use the normal permission bridge.