if CanItemBePlayerLocked(bagId,slotId) then SetItemIsPlayerLocked(bagId,slotId,true)else d("Item cannot be locked.")end