Need help with rank chat tags for gmod bhop server!

I have recently made a bhop server and I would like the ranks of players to show next to their names in the chat, as for now they only show when you view players by holding tab.
If anyone can help me with this i would appreciate it a lot.

function showtags():
show (playerrank) if CHAT_MESSAGE = true
     return (playerrank):HUD_LEFT