Notes payable is a liability if the company which you are making the accounts for issued them. A company can also hold loan notes as an investment but it will not be called notes payable (rather a financial asset).
They are a liability since they have the word “payable”!. Notes payable are loans that a company has taken to fund investments and/or operations so they are liabilities for the company.