connect to server with password

well how would i connect to a server with password through lua like…



LocalPlayer():ConCommand("connect 192.168.0.128:27016", "123password")


(this doesnt work btw)
how do i do it correctly

Have you tried

RunConsoleCommand(“password”, “lolpassword”)
RunConsoleCommand(“connect”, “192.168.0.128:27016”)

ty