Forum
CS2D Scripts How do you use 2 LUA scripts together?How do you use 2 LUA scripts together?
3 replies 1
You can use the dofile:
1
2
2
First : dofile('sys/lua/yourlua.lua') Second : dofile('sys/lua/yourlua.lua')
And it should work.
1
server.lua
and try adding a new line for your Second Script.
it should look like this
1
2
2
dofile("sys/lua/Script1.lua") dofile("sys/lua/Script2.lua")
1