Sending client function throuh UserMessage.. help!

Hello FacePunch,
I’ve stumbled across a problem where I’m trying not to use concommand or SendLua and instead usermessages to send the client a function from the server.

The problem being that the function is Clientside, a derma menu, and the usermessage is server side. So whenever I try to send the function…

Example:
[lua]umsg.Start(“lolumsg”,pl)
Menu()
umsg.End()[/lua]
It returns any of the menu’s VGUI elements, which it’s mainly all composed of, as a nil value.

Can I even use usermessages for what I’m trying to do?

In a client side file put:
[lua]
usermessage.Hook(“menu”, Menu)
[/lua]

Then use:
[lua]
umsg.Start(“menu”, pl)
umsg.End()
[/lua]

Finally! Thank you so much Averice, such a simple answer.