How to implement friends invite and players joining my lobby and playing together like in pubg mobile in UE4???

I am learning UE4 multiplayer now but I am having doubts regarding players joining my lobby and Playing matches together.was pubg mobile implemented with their custom code or they used some built in function of UE4.If they implemented it in custom way can I get some resources to implement it??.Thank you