Custom Leaderboard with teams

I recently saw that in a game called SCP:Roleplay has a cool leaderboard with teams and logos for mods. And my question is how to make a leaderboard that shows teams and shows mod logos or custom logos if you’ve a specific rank in a group?
Can anyone help me? I’m new to scripting and don’t know how to script that like that. Image here