So when I send a string through usermessages how do I set a variable to read this string? For ex:
for k,v in pairs( player.GetAll() ) do
if v:Alive() then
umsg.Start( “TestUmsg” )
umsg.String( v )
chat.AddText( “Testing herp.” )
usermessage.Hook( “TestUmsg”, TestUmsg )
P.S. This was just an example for the hell of it. I would normally do the checking on client side but it’s not that simple as if he’s alive or not.
Wait… I just confused myself. How would I go about adding text to a specific person ?