Forum
 
  CS2D
 CS2D  General
 General  Enabling lua in maps
 Enabling lua in maps Enabling lua in maps
 Enabling lua in maps
6 replies 
  1
 1  
 
mp_luamap is a serversetting, which you can enable by the developer console
 mp_luamap .
 mp_luamap . -> New Game
-> More settings
-> set 'mp_luamap' to 1
If you use a dedicated server:
(you should have a config.cfg or server.cfg)
-> Search for 'mp_luamap' and set it to 1
-> or manually add it. (mp_luamap 1)
this file should include many other mp_, sv_, commands.
As an alternative you can use this as a luascript: (save the highlighted text as a xxx.lua file and drop it into your autorun folder (should be around sys/lua/autorun/):
1
2
3
4
5
6
2
3
4
5
6
--untested
function enableLuaMap() 
	parse("mp_luamap 1")
	parse("changemap "..map("name"))
end
enableLuaMap()
 
   
  1
 1  
 
 Offline
 Offline