Ending a Garry's Mod level

Hello, just wanted to find out how do you end level you created in GMOD? Like when you load up a save, trigger an insvisible wall and it takes you to the main menu. I’ve followed the guide for Portal 2 in Valve Developer Community https://developer.valvesoftware.com/wiki/Ending_a_Portal_map but it just makes the screen fade out a go back to the level.

Any help would be appreciated. Thanks :slight_smile:

I don’t think point_clientcmd works in GMod. Use the lua_run and run this:
[lua]
RunConsoleCommand( “disconnect” )
[/lua]

The disconnect trigger is Portal specific iirc, and GMod isn’t based off of that branch.

Thanks, can you be a little more specific? I pretty much new to this stuff. Where am I supposed to type this, does this require Hammer?