Kartik Scripts

getItemLocks

Server export that retrieves all authored garment item lock rules currently loaded from kc_item_locks.

💡 Syntax

local itemLocks = exports['kartik-clothing']:getItemLocks()

📥 Return Values

  • itemLocks (table): Array of item lock rule objects containing kind, item_id, drawable, texture, gender, rule, and note.

⚙️ Example Usage

local locks = exports['kartik-clothing']:getItemLocks()
for i = 1, #locks do
    local lock = locks[i]
    print(("^2[Item Lock]^7 %s #%d (Drawable %d) -> Rule: %s"):format(lock.kind, lock.item_id, lock.drawable, lock.rule))
end

On this page