diff --git a/lua/ulx/modules/sh/util.lua b/lua/ulx/modules/sh/util.lua index 61c83af..d545790 100644 --- a/lua/ulx/modules/sh/util.lua +++ b/lua/ulx/modules/sh/util.lua @@ -53,7 +53,7 @@ function ulx.map( calling_ply, map, gamemode ) if gamemode and gamemode ~= "" then game.ConsoleCommand( "gamemode " .. gamemode .. "\n" ) end - game.ConsoleCommand( "changelevel " .. map .. "\n" ) + game.ConsoleCommand( "changelevel \"" .. map .. "\"\n" ) end local map = ulx.command( CATEGORY_NAME, "ulx map", ulx.map, "!map" ) map:addParam{ type=ULib.cmds.StringArg, completes=ulx.maps, hint="map", error="invalid map \"%s\" specified", ULib.cmds.restrictToCompletes } diff --git a/lua/ulx/modules/sh/vote.lua b/lua/ulx/modules/sh/vote.lua index 2123766..d5babb3 100644 --- a/lua/ulx/modules/sh/vote.lua +++ b/lua/ulx/modules/sh/vote.lua @@ -167,7 +167,7 @@ local function voteMapDone2( t, changeTo, ply ) end if shouldChange then - ULib.consoleCommand( "changelevel " .. changeTo .. "\n" ) + ULib.consoleCommand( "changelevel \"" .. changeTo .. "\"\n" ) end end