Special Item

Technical behaviors and metadata flags for protected and locked inventory items.

Protected Item

Protected items cannot be stolen by players during robberies:

  • Cannot be robbed by other players.
  • Attached weapon attachments cannot be stolen.
  • Police officers can seize protected items if enabled.
  • Players can drop or trade protected items.
  • Removed by external scripts calling RemoveItem.
  • Removed when running /clearinv admin command.
exports['ak47_inventory']:AddItem(source, 'weapon_pistol', 1, nil, {protected = 1})

Locked Item

Locked items are bound to the inventory and cannot be transferred:

  • Cannot be moved to any other inventory.
  • Player cannot drop or give this item.
  • Weapons with locked attachments cannot be dropped or robbed.
  • Removed by external scripts calling RemoveItem.
  • Removed when running /clearinv admin command.
exports['ak47_inventory']:AddItem(source, 'weapon_pistol', 1, nil, {locked = 1})