How to invoice payments of employees

I want to create the invoices for the payments of employees or for external partners. Is that possible?

add them as vendor/supplier.

But how can I add a vendor/supplier in a project or a task?