Forum

> > CS2D > Scripts > can i use 2 lua scripts in my server ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English can i use 2 lua scripts in my server ?

4 replies
To the start Previous 1 Next To the start

old Re: can i use 2 lua scripts in my server ?

DC
Admin Off Offline

Quote
@user firas hentati: There are different ways to use multiple Lua files as you can see.

√ You do not have to change cs2d cmd mp_luaserver at all when putting the files into sys/lua/autorun as suggested by user Starkkz. It's actually the easiest solution.

√ You could also keep cs2d cmd mp_luaserver as it is (the default value is sys/lua/server.lua) and put the stuff that user Xirot wrote in your sys/lua/server.lua file. Don't forget to change the paths/file names then.
This is actually the classic solution (because the autorun feature is new and has just been added recently for convenience)

× Note that specifying MULTIPLE Lua files directly in cs2d cmd mp_luaserver does NOT work. So this setting is not really related to your problem.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview