Chat Command - Server Switcher HELP

I tried posting in this thread: but I didn’t get any help.

So I’ll ask again, is there any way to make a chat command that sends you to another servers? I heard that gui.OpenURL doesn’t work anymore, so I’m not sure.

Does anybody know of a way?


ulx cexec "player name" "connect ip"

Needs ULX though. cexec = client execute, which executes a console command, although some are blocked from being used with cexec.

How would I make that into a function?

Like, how would I make it do that if the player said “!ttt” or something

I just read from here that connect is blocked on RunConsoleCommand so ULX probably won’t be able to use it either. This might not be possible at all.

That’s what I thought, though maybe someone else has some knowledge on how to do this.

Thanks for trying though.

local serverip = “”

hook.Add( “PlayerSay”, “plyChat”, function( ply, text, public )
text = string.lower(text)
if (text == “!ttt”) then
ply:SendLua(“LocalPlayer():ConCommand(‘connect “…serverip…”’)”)

Thanks for your help :slight_smile: