return function as string?

okay im looking to run this in my GM:PlayerInitialSpawn, but that hook is for server scripts and the chat library is for client scripts. Any ideas? (preferably not having GM:PlayerInitialSpawn in a shared script, as I would like to keep that in a sv_ sided script, but I want a colored msg appearing in the chatbox everytime someone joins, any ways to accompilsh this from what I have, or possibly another method?

This should help

havent got time to read it yet as i am busy working on some GUI stuff for my mod but looking at the thread title…looks like EXACTLY what im looking for :slight_smile: thank you VERY much, ill try to edit this post later and post if it helped ;p