Interactive NPC

Hello i was wondering bout how to make NPC for like a RP gamemode which you can do up to and interact with them. They can give you jobs or loan you money and what not. Where can i find some more info about this or could someone point me in the right direction. I know some lua code and getting better at it as i go.

Thanks

Tutorial

To give you an idea.