Sup, creating a menu for my "Search" addon, it's pretty much finished except for one problem, what ever is written in the "DTextEntry" will not send further then the first space, example if type "Extreme Memes" it will come up with "Extreme" only.
I know that the spaces are going through because If I use print, it shows correctly in console, but the link will only open before the space:
STextDerma.OnEnter = function(self) -- What to search?
local cmd2run = "ulx search google " .. self:GetValue()
print( cmd2run )
LocalPlayer():ConCommand( cmd2run )
end
The following above would print in console (example): "ulx search google Extreme Memes", but the link that opens only contains "Extreme" and no further. It works without the derma menu, and the derma menu works if you use %20 (unfortunately I can't gsub spaces with %20)