Sup, using derma menu for html and I have umsg set up correctly, this is my code for the derma panel
if CLIENT then
function DermaHTML(data)
local url = "\"" .. data:ReadString(1) .. data:ReadString(2) .. "\""
print( url )
local HTMLDerma = vgui.Create( "DFrame" )
HTMLDerma:SetSize( ScrW() * 0.9, ScrH() * 0.9 )
HTMLDerma:Center()
HTMLDerma:SetTitle( "Tom's HTML Menu" )
HTMLDerma:SetSizable( false )
HTMLDerma:SetDraggable( true )
HTMLDerma:ShowCloseButton( true )
HTMLDerma:MakePopup()
local HTMLTest = vgui.Create("HTML", HTMLDerma )
HTMLTest:StretchToParent(5, 25, 5, 5)
HTMLTest:OpenURL(url)
end
concommand.Add( "+html", DermaHTML )
end
usermessage.Hook( "sendthestuff", DermaHTML )
As you can see, it is set to open the url sent from umsg...
umsg.Start("sendthestuff" )
umsg.String(link)
umsg.String(search)
umsg.End()
However, the stuff that gets sent from the umsg dosen't want to open in the derma menu, and it is working correcting because line 6 prints it into the console correctly, also if I do local url = "
http://www.google.com/" it opens correctly.
It just dosen't like the variable being from umsg. Any fixes for this, or is it unknown? perhaps I have done something wrong.